Bug 1084607 - Add missing namespace references for GLImages.cpp. r=jgilbert CLOSED TREE
☠☠ backed out by 34f6b30b6dfa ☠ ☠
authorRalph Giles <giles@mozilla.com>
Fri, 17 Oct 2014 15:03:00 -0700
changeset 211083 e3fe866230651de6aca3107670b3fcc5d851eded
parent 211082 1c3957daffe6b398ae350b69163c4b14199ad688
child 211084 34f6b30b6dfac91ecf9416d1f8c953e79d01a07a
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjgilbert
bugs1084607
milestone36.0a1
Bug 1084607 - Add missing namespace references for GLImages.cpp. r=jgilbert CLOSED TREE This fixes undeclared type errors on non-unified builds.
gfx/layers/GLImages.cpp
gfx/layers/opengl/TextureClientOGL.h
--- a/gfx/layers/GLImages.cpp
+++ b/gfx/layers/GLImages.cpp
@@ -1,21 +1,22 @@
 #ifdef MOZ_WIDGET_ANDROID
 
 #include "GLImages.h"
 #include "GLContext.h"
 #include "GLContextProvider.h"
 #include "ScopedGLHelpers.h"
-#include "GLImages.h"
 #include "GLBlitHelper.h"
 #include "GLReadTexImageHelper.h"
 #include "AndroidSurfaceTexture.h"
 
 using namespace mozilla;
+using namespace mozilla::gfx;
 using namespace mozilla::gl;
+using namespace mozilla::layers;
 
 static Mutex sSnapshotMutex("SurfaceTextureImage::sSnapshotMutex");
 static nsRefPtr<GLContext> sSnapshotContext;
 
 TemporaryRef<gfx::SourceSurface>
 SurfaceTextureImage::GetAsSourceSurface()
 {
   MutexAutoLock lock(sSnapshotMutex);
--- a/gfx/layers/opengl/TextureClientOGL.h
+++ b/gfx/layers/opengl/TextureClientOGL.h
@@ -69,17 +69,17 @@ protected:
 };
 
 #ifdef MOZ_WIDGET_ANDROID
 
 class SurfaceTextureClient : public TextureClient
 {
 public:
   SurfaceTextureClient(TextureFlags aFlags,
-                       AndroidSurfaceTexture* aSurfTex,
+                       gl::AndroidSurfaceTexture* aSurfTex,
                        gfx::IntSize aSize,
                        bool aInverted);
 
   ~SurfaceTextureClient();
 
   virtual bool IsAllocated() const MOZ_OVERRIDE { return true; }
 
   virtual bool HasInternalBuffer() const MOZ_OVERRIDE { return false; }
@@ -108,17 +108,17 @@ public:
   }
 
   virtual bool AllocateForSurface(gfx::IntSize aSize, TextureAllocationFlags aFlags) MOZ_OVERRIDE
   {
     return false;
   }
 
 protected:
-  const RefPtr<AndroidSurfaceTexture> mSurfTex;
+  const RefPtr<gl::AndroidSurfaceTexture> mSurfTex;
   const gfx::IntSize mSize;
   bool mIsLocked;
 };
 
 #endif // MOZ_WIDGET_ANDROID
 
 } // namespace
 } // namespace