Backed out changeset 869a28961b5c (bug 1084514)
authorWes Kocher <wkocher@mozilla.com>
Fri, 17 Oct 2014 16:33:35 -0700
changeset 211085 3f27d263d0f71cc7043556ff64a0442e1576c883
parent 211084 34f6b30b6dfac91ecf9416d1f8c953e79d01a07a
child 211086 53e24fd12cd18d5bf4805fe4d81b70c13ae1d233
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs1084514
milestone36.0a1
backs out869a28961b5c2572a18f730fdf4d659cf45d9bf6
Backed out changeset 869a28961b5c (bug 1084514)
gfx/gl/AndroidSurfaceTexture.cpp
gfx/gl/GLBlitHelper.cpp
--- a/gfx/gl/AndroidSurfaceTexture.cpp
+++ b/gfx/gl/AndroidSurfaceTexture.cpp
@@ -13,17 +13,16 @@
 #include "gfxImageSurface.h"
 #include "AndroidBridge.h"
 #include "nsThreadUtils.h"
 #include "mozilla/gfx/Matrix.h"
 #include "GeneratedJNIWrappers.h"
 #include "GLContext.h"
 
 using namespace mozilla;
-using namespace mozilla::gl;
 using namespace mozilla::widget::android;
 
 // UGH
 static std::map<int, AndroidSurfaceTexture*> sInstances;
 static int sNextID = 0;
 
 static bool
 IsDetachSupported()
--- a/gfx/gl/GLBlitHelper.cpp
+++ b/gfx/gl/GLBlitHelper.cpp
@@ -1,16 +1,15 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* vim: set ts=8 sts=4 et sw=4 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "GLBlitHelper.h"
-#include "AndroidSurfaceTexture.h"
 #include "GLContext.h"
 #include "ScopedGLHelpers.h"
 #include "mozilla/Preferences.h"
 #include "ImageContainer.h"
 #include "HeapCopyOfStackArray.h"
 #include "mozilla/gfx/Matrix.h"
 
 #ifdef MOZ_WIDGET_GONK
@@ -734,17 +733,17 @@ GLBlitHelper::BlitSurfaceTextureImage(la
 
     // UpdateTexImage() changes the EXTERNAL binding, so save it here
     // so we can restore it after.
     int oldBinding = 0;
     mGL->fGetIntegerv(LOCAL_GL_TEXTURE_BINDING_EXTERNAL, &oldBinding);
 
     surfaceTexture->UpdateTexImage();
 
-    gfx::Matrix4x4 transform;
+    Matrix4x4 transform;
     surfaceTexture->GetTransformMatrix(transform);
 
     mGL->fUniformMatrix4fv(mTextureTransformLoc, 1, false, &transform._11);
     mGL->fUniform1f(mYFlipLoc, yFlip ? 1.0f : 0.0f);
     mGL->fDrawArrays(LOCAL_GL_TRIANGLE_STRIP, 0, 4);
 
     surfaceTexture->Detach();