diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index f09cd505f7e..9c289dd6a5f 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -1213,7 +1213,7 @@ ContentChild::RecvAddPermission(const IPC::Permission& permission) } bool -ContentChild::RecvScreenSizeChanged(const gfxIntSize& size) +ContentChild::RecvScreenSizeChanged(const gfx::IntSize& size) { #ifdef ANDROID mScreenSize = size; diff --git a/dom/ipc/ContentChild.h b/dom/ipc/ContentChild.h index 4f15636a89c..1bbd5cecc64 100644 --- a/dom/ipc/ContentChild.h +++ b/dom/ipc/ContentChild.h @@ -191,7 +191,7 @@ public: virtual bool RecvAddPermission(const IPC::Permission& permission); - virtual bool RecvScreenSizeChanged(const gfxIntSize &size); + virtual bool RecvScreenSizeChanged(const gfx::IntSize &size); virtual bool RecvFlushMemory(const nsString& reason); @@ -227,7 +227,7 @@ public: virtual bool RecvNotifyPhoneStateChange(const nsString& state); #ifdef ANDROID - gfxIntSize GetScreenSize() { return mScreenSize; } + gfx::IntSize GetScreenSize() { return mScreenSize; } #endif // Get the directory for IndexedDB files. We query the parent for this and @@ -272,7 +272,7 @@ private: AppInfo mAppInfo; #ifdef ANDROID - gfxIntSize mScreenSize; + gfx::IntSize mScreenSize; #endif bool mIsForApp; diff --git a/dom/ipc/PContent.ipdl b/dom/ipc/PContent.ipdl index 2a41c12d441..821bb05b08f 100644 --- a/dom/ipc/PContent.ipdl +++ b/dom/ipc/PContent.ipdl @@ -55,7 +55,7 @@ using mozilla::dom::AudioChannelState; using mozilla::dom::BlobConstructorParams; using mozilla::dom::NativeThreadId; using mozilla::hal::ProcessPriority; -using gfxIntSize; +using mozilla::gfx::IntSize; namespace mozilla { namespace dom { @@ -287,13 +287,13 @@ child: // nsIPermissionManager messages AddPermission(Permission permission); - ScreenSizeChanged(gfxIntSize size); + ScreenSizeChanged(IntSize size); FlushMemory(nsString reason); GarbageCollect(); CycleCollect(); - + /** * Start accessibility engine in content process. */ diff --git a/gfx/layers/ipc/ShadowLayerUtilsX11.cpp b/gfx/layers/ipc/ShadowLayerUtilsX11.cpp index 90d92683595..d208542550e 100644 --- a/gfx/layers/ipc/ShadowLayerUtilsX11.cpp +++ b/gfx/layers/ipc/ShadowLayerUtilsX11.cpp @@ -29,6 +29,7 @@ #include "nsCOMPtr.h" // for already_AddRefed #include "nsDebug.h" // for NS_ERROR #include "prenv.h" // for PR_GetEnv +#include "gfx2DGlue.h" using namespace mozilla::gl; @@ -115,7 +116,7 @@ SurfaceDescriptorX11::OpenForeign() const } bool -ISurfaceAllocator::PlatformAllocSurfaceDescriptor(const gfxIntSize& aSize, +ISurfaceAllocator::PlatformAllocSurfaceDescriptor(const gfx::IntSize& aSize, gfxContentType aContent, uint32_t aCaps, SurfaceDescriptor* aBuffer) @@ -133,7 +134,8 @@ ISurfaceAllocator::PlatformAllocSurfaceDescriptor(const gfxIntSize& aSize, } gfxPlatform* platform = gfxPlatform::GetPlatform(); - nsRefPtr buffer = platform->CreateOffscreenSurface(aSize, aContent); + nsRefPtr buffer = platform->CreateOffscreenSurface(ThebesIntSize(aSize), + aContent); if (!buffer || buffer->GetType() != gfxSurfaceTypeXlib) { NS_ERROR("creating Xlib front/back surfaces failed!"); diff --git a/widget/android/nsScreenManagerAndroid.cpp b/widget/android/nsScreenManagerAndroid.cpp index 95facf8d39a..cfdaad4eaa6 100644 --- a/widget/android/nsScreenManagerAndroid.cpp +++ b/widget/android/nsScreenManagerAndroid.cpp @@ -8,6 +8,7 @@ #include "nsScreenManagerAndroid.h" #include "nsWindow.h" #include "AndroidBridge.h" +#include "mozilla/gfx/Point.h" using namespace mozilla; @@ -22,7 +23,7 @@ nsScreenAndroid::~nsScreenAndroid() NS_IMETHODIMP nsScreenAndroid::GetRect(int32_t *outLeft, int32_t *outTop, int32_t *outWidth, int32_t *outHeight) { - gfxIntSize sz = nsWindow::GetAndroidScreenBounds(); + gfx::IntSize sz = nsWindow::GetAndroidScreenBounds(); *outLeft = 0; *outTop = 0; diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 52f1fcc6e23..cc3e1011808 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -58,6 +58,7 @@ using mozilla::unused; #include "nsString.h" #include "GeckoProfiler.h" // For PROFILER_LABEL +#include "mozilla/gfx/Point.h" using namespace mozilla; using namespace mozilla::dom; @@ -68,7 +69,7 @@ NS_IMPL_ISUPPORTS_INHERITED0(nsWindow, nsBaseWidget) // The dimensions of the current android view static gfxIntSize gAndroidBounds = gfxIntSize(0, 0); -static gfxIntSize gAndroidScreenBounds; +static mozilla::gfx::IntSize gAndroidScreenBounds; #include "mozilla/layers/AsyncPanZoomController.h" #include "mozilla/layers/CompositorChild.h" @@ -1141,7 +1142,7 @@ nsWindow::InitEvent(WidgetGUIEvent& event, nsIntPoint* aPoint) event.time = PR_Now() / 1000; } -gfxIntSize +mozilla::gfx::IntSize nsWindow::GetAndroidScreenBounds() { if (XRE_GetProcessType() == GeckoProcessType_Content) { diff --git a/widget/android/nsWindow.h b/widget/android/nsWindow.h index 0baddd5ae3f..34387008b89 100644 --- a/widget/android/nsWindow.h +++ b/widget/android/nsWindow.h @@ -7,7 +7,7 @@ #define NSWINDOW_H_ #include "nsBaseWidget.h" -#include "gfxPoint.h" +#include "mozilla/gfx/Point.h" #include "nsIIdleServiceInternal.h" #include "nsTArray.h" #include "AndroidJavaWrappers.h" @@ -42,7 +42,7 @@ public: NS_DECL_ISUPPORTS_INHERITED static void OnGlobalAndroidEvent(mozilla::AndroidGeckoEvent *ae); - static gfxIntSize GetAndroidScreenBounds(); + static mozilla::gfx::IntSize GetAndroidScreenBounds(); static nsWindow* TopWindow(); nsWindow* FindWindowForPoint(const nsIntPoint& pt);