Bug 903816. Fixups in non-layers files. r=roc

This commit is contained in:
Nicholas Cameron 2013-08-12 11:15:10 +12:00
parent dec5eff0fb
commit b85b496768
15 changed files with 33 additions and 14 deletions

View File

@ -56,6 +56,7 @@
#endif
#include "Layers.h"
#include "mozilla/layers/ShadowLayers.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/indexedDB/IndexedDatabaseManager.h"

View File

@ -23,6 +23,7 @@
#include "mozilla/layers/CompositorChild.h"
#include "mozilla/layers/ImageBridgeChild.h"
#include "mozilla/layers/PLayerTransactionChild.h"
#include "mozilla/layers/ShadowLayers.h"
#include "mozilla/layout/RenderFrameChild.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/unused.h"

View File

@ -6,6 +6,8 @@
#ifndef MOZILLA_BASEPOINT3D_H_
#define MOZILLA_BASEPOINT3D_H_
#include "nsDebug.h"
namespace mozilla {
namespace gfx {

View File

@ -10,6 +10,7 @@
#include "BaseMargin.h"
#include "Point.h"
#include "Tools.h"
#include "nsMathUtils.h"
namespace mozilla {
namespace gfx {

View File

@ -246,6 +246,21 @@ TextureImage::TextureImage(const gfx::IntSize& aSize,
, mFlags(aFlags)
{}
BasicTextureImage::BasicTextureImage(GLuint aTexture,
const nsIntSize& aSize,
GLenum aWrapMode,
ContentType aContentType,
GLContext* aContext,
TextureImage::Flags aFlags /* = TextureImage::NoFlags */,
TextureImage::ImageFormat aImageFormat /* = gfxASurface::ImageFormatUnknown */)
: TextureImage(aSize, aWrapMode, aContentType, aFlags, aImageFormat)
, mTexture(aTexture)
, mTextureState(Created)
, mGLContext(aContext)
, mUpdateOffset(0, 0)
{
}
BasicTextureImage::BasicTextureImage(GLuint aTexture,
const gfx::IntSize& aSize,
GLenum aWrapMode,

View File

@ -309,14 +309,7 @@ public:
ContentType aContentType,
GLContext* aContext,
TextureImage::Flags aFlags = TextureImage::NoFlags,
TextureImage::ImageFormat aImageFormat = gfxASurface::ImageFormatUnknown)
: TextureImage(aSize, aWrapMode, aContentType, aFlags, aImageFormat)
, mTexture(aTexture)
, mTextureState(Created)
, mGLContext(aContext)
, mUpdateOffset(0, 0)
{}
TextureImage::ImageFormat aImageFormat = gfxASurface::ImageFormatUnknown);
BasicTextureImage(GLuint aTexture,
const gfx::IntSize& aSize,
GLenum aWrapMode,

View File

@ -9,7 +9,7 @@
#include "base/process_util.h"
#include "chrome/common/ipc_message_utils.h"
//#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtils.h"
#include "mozilla/Util.h"
#include "mozilla/gfx/2D.h"

View File

@ -10,6 +10,7 @@
#include "nsIThread.h"
#include "nsThreadUtils.h"
#include "gfxImageSurface.h"
#include "gfxContext.h"
namespace mozilla {
namespace layers {

View File

@ -9,10 +9,10 @@
#include "mozilla/ipc/Shmem.h"
#include "mozilla/ipc/SharedMemory.h"
#include "cairo.h"
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "cairo.h"
#include "pratom.h"
struct SharedImageInfo {

View File

@ -17,6 +17,7 @@
#include "qcms.h"
#include "mozilla/gfx/2D.h"
#include "gfx2DGlue.h"
#include "mozilla/RefPtr.h"
#include "GfxInfoCollector.h"

View File

@ -26,7 +26,6 @@
#include "nsContentUtils.h" // for nsAutoScriptBlocker
#include "nsLayoutUtils.h"
#include "Layers.h"
#include "mozilla/layers/Compositor.h"
/**
XXX TODO XXX

View File

@ -109,6 +109,7 @@ extern "C" {
#include "Layers.h"
#include "LayerManagerOGL.h"
#include "GLContextProvider.h"
#include "mozilla/gfx/2D.h"
#ifdef MOZ_X11
#include "gfxXlibSurface.h"
@ -122,6 +123,7 @@ extern "C" {
#include "nsWindow.h"
using namespace mozilla;
using namespace mozilla::gfx;
using namespace mozilla::widget;
using namespace mozilla::layers;
using mozilla::gl::GLContext;
@ -5962,7 +5964,7 @@ nsWindow::GetSurfaceForGdkDrawable(GdkDrawable* aDrawable,
#endif
#if defined(MOZ_WIDGET_GTK2)
TemporaryRef<gfx::DrawTarget>
TemporaryRef<DrawTarget>
nsWindow::StartRemoteDrawing()
{
gfxASurface *surf = GetThebesSurface();
@ -5970,7 +5972,7 @@ nsWindow::StartRemoteDrawing()
return nullptr;
}
gfx::IntSize size(surf->GetSize().width, surf->GetSize().height);
IntSize size(surf->GetSize().width, surf->GetSize().height);
if (size.width <= 0 || size.height <= 0) {
return nullptr;
}

View File

@ -36,6 +36,7 @@
#include "nsGtkIMModule.h"
#undef LOG
#ifdef MOZ_LOGGING
// make sure that logging is enabled before including prlog.h

View File

@ -73,6 +73,7 @@
#include "prtime.h"
#include "prprf.h"
#include "prmem.h"
#include "prenv.h"
#include "mozilla/WidgetTraceEvent.h"
#include "nsIAppShell.h"

View File

@ -9,6 +9,7 @@
#include "prthread.h"
#include "prinrval.h"
#include "nscore.h"
#include "nsIThreadManager.h"
#include "nsIThread.h"
#include "nsIRunnable.h"