Bug 856079 - Merge ShadowLayer and LayerComposite (keeping the later). r=nrc

This commit is contained in:
Nicolas Silva
2013-04-22 18:41:29 -04:00
parent 702d012731
commit 6f9262c760
43 changed files with 427 additions and 570 deletions

View File

@@ -9,6 +9,7 @@
#include "nsIWidget.h"
#include "gfxUtils.h"
#include "gfxPlatform.h"
#include "mozilla/layers/LayerManagerComposite.h"
namespace mozilla {
@@ -22,7 +23,7 @@ ContentClient::CreateContentClient(CompositableForwarder* aForwarder)
if (aForwarder->GetCompositorBackendType() != LAYERS_OPENGL) {
return nullptr;
}
if (ShadowLayerManager::SupportsDirectTexturing() ||
if (LayerManagerComposite::SupportsDirectTexturing() ||
PR_GetEnv("MOZ_FORCE_DOUBLE_BUFFERING")) {
return new ContentClientDoubleBuffered(aForwarder);
}