Bug 715785: Make ImageContainers independent of LayerManagers. r=roc

This commit is contained in:
Bas Schouten
2012-02-01 03:18:30 +01:00
parent 4762ea78a3
commit 33c8caf378
41 changed files with 1268 additions and 2097 deletions

View File

@@ -256,20 +256,12 @@ nsPluginInstanceOwner::EndUpdateBackground(gfxContext* aContext,
bool
nsPluginInstanceOwner::UseAsyncRendering()
{
#ifdef XP_MACOSX
nsRefPtr<ImageContainer> container = mObjectFrame->GetImageContainer();
#endif
bool useAsyncRendering;
bool result = (mInstance &&
NS_SUCCEEDED(mInstance->UseAsyncPainting(&useAsyncRendering)) &&
useAsyncRendering &&
#ifdef XP_MACOSX
container &&
container->GetBackendType() ==
LayerManager::LAYERS_OPENGL
#else
(!mPluginWindow ||
useAsyncRendering
#ifndef XP_MACOSX
&& (!mPluginWindow ||
mPluginWindow->type == NPWindowTypeDrawable)
#endif
);