Bug 862106. Use Create*Client directly. r=nical

This commit is contained in:
Nicholas Cameron
2013-04-17 09:36:06 +12:00
parent 913ecb9e12
commit 97c38ba23b
12 changed files with 24 additions and 68 deletions

View File

@@ -17,10 +17,9 @@ using namespace gfx;
namespace layers {
/* static */ TemporaryRef<ContentClient>
ContentClient::CreateContentClient(LayersBackend aParentBackend,
CompositableForwarder* aForwarder)
ContentClient::CreateContentClient(CompositableForwarder* aForwarder)
{
if (aParentBackend != LAYERS_OPENGL) {
if (aForwarder->GetCompositorBackendType() != LAYERS_OPENGL) {
return nullptr;
}
if (ShadowLayerManager::SupportsDirectTexturing() ||