зеркало из https://github.com/mozilla/gecko-dev.git
Bug 910158. Don't include BasicLayers.h unnecessarily. r=roc
This commit is contained in:
Родитель
51fb5f5934
Коммит
9fb3417161
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "mozilla/dom/HTMLCanvasElement.h"
|
||||
|
||||
#include "BasicLayers.h"
|
||||
#include "Layers.h"
|
||||
#include "imgIEncoder.h"
|
||||
#include "jsapi.h"
|
||||
#include "jsfriendapi.h"
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#include "nsICachingChannel.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsVideoFrame.h"
|
||||
#include "BasicLayers.h"
|
||||
#include "Layers.h"
|
||||
#include <limits>
|
||||
#include "nsIAsyncVerifyRedirectCallback.h"
|
||||
#include "nsIAppShell.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "TabChild.h"
|
||||
|
||||
#include "BasicLayers.h"
|
||||
#include "Layers.h"
|
||||
#include "Blob.h"
|
||||
#include "ContentChild.h"
|
||||
#include "IndexedDBChild.h"
|
||||
|
|
|
@ -37,7 +37,6 @@ using mozilla::unused;
|
|||
#include "gfxContext.h"
|
||||
|
||||
#include "Layers.h"
|
||||
#include "BasicLayers.h"
|
||||
#include "LayerManagerOGL.h"
|
||||
#include "mozilla/layers/LayerManagerComposite.h"
|
||||
#include "mozilla/layers/AsyncCompositionManager.h"
|
||||
|
|
|
@ -90,7 +90,6 @@ using namespace mozilla::widget;
|
|||
#include "nsImageToPixbuf.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "BasicLayers.h"
|
||||
#include "ClientLayerManager.h"
|
||||
|
||||
extern "C" {
|
||||
|
@ -6128,8 +6127,7 @@ nsWindow::ClearCachedResources()
|
|||
{
|
||||
if (mLayerManager &&
|
||||
mLayerManager->GetBackendType() == mozilla::layers::LAYERS_BASIC) {
|
||||
static_cast<mozilla::layers::BasicLayerManager*> (mLayerManager.get())->
|
||||
ClearCachedResources();
|
||||
mLayerManager->ClearCachedResources();
|
||||
}
|
||||
|
||||
GList* children = gdk_window_peek_children(mGdkWindow);
|
||||
|
|
|
@ -95,7 +95,6 @@ using namespace QtMobility;
|
|||
#include "gfxUtils.h"
|
||||
#include "Layers.h"
|
||||
#include "GLContextProvider.h"
|
||||
#include "BasicLayers.h"
|
||||
#include "LayerManagerOGL.h"
|
||||
#include "nsFastStartupQt.h"
|
||||
|
||||
|
@ -441,8 +440,7 @@ nsWindow::ClearCachedResources()
|
|||
{
|
||||
if (mLayerManager &&
|
||||
mLayerManager->GetBackendType() == mozilla::layers::LAYERS_BASIC) {
|
||||
static_cast<mozilla::layers::BasicLayerManager*> (mLayerManager.get())->
|
||||
ClearCachedResources();
|
||||
statimLayerManager->ClearCachedResources();
|
||||
}
|
||||
for (nsIWidget* kid = mFirstChild; kid; ) {
|
||||
nsIWidget* next = kid->GetNextSibling();
|
||||
|
|
|
@ -134,7 +134,6 @@
|
|||
|
||||
#include "LayerManagerOGL.h"
|
||||
#include "nsIGfxInfo.h"
|
||||
#include "BasicLayers.h"
|
||||
#include "nsUXThemeConstants.h"
|
||||
#include "KeyboardLayout.h"
|
||||
#include "nsNativeDragTarget.h"
|
||||
|
@ -7176,8 +7175,7 @@ nsWindow::ClearCachedResources()
|
|||
#endif
|
||||
if (mLayerManager &&
|
||||
mLayerManager->GetBackendType() == LAYERS_BASIC) {
|
||||
static_cast<BasicLayerManager*>(mLayerManager.get())->
|
||||
ClearCachedResources();
|
||||
mLayerManager->ClearCachedResources();
|
||||
}
|
||||
::EnumChildWindows(mWnd, nsWindow::ClearResourcesCallback, 0);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ using mozilla::plugins::PluginInstanceParent;
|
|||
#include "mozilla/unused.h"
|
||||
|
||||
#include "LayerManagerOGL.h"
|
||||
#include "BasicLayers.h"
|
||||
#ifdef MOZ_ENABLE_D3D9_LAYER
|
||||
#include "LayerManagerD3D9.h"
|
||||
#endif
|
||||
|
|
|
@ -1050,7 +1050,7 @@ LayerManager* nsBaseWidget::GetLayerManager(PLayerTransactionChild* aShadowManag
|
|||
return usedLayerManager;
|
||||
}
|
||||
|
||||
BasicLayerManager* nsBaseWidget::CreateBasicLayerManager()
|
||||
LayerManager* nsBaseWidget::CreateBasicLayerManager()
|
||||
{
|
||||
return new BasicLayerManager(this);
|
||||
}
|
||||
|
|
|
@ -332,7 +332,7 @@ protected:
|
|||
return widget.forget();
|
||||
}
|
||||
|
||||
BasicLayerManager* CreateBasicLayerManager();
|
||||
LayerManager* CreateBasicLayerManager();
|
||||
|
||||
nsPopupType PopupType() const { return mPopupType; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче