Bug 1266280 - Build Failure on b2g44_v25, gfx namespace is not used because it is placed into different chunk by unify building.; r=xeonchen a=jocheng
authorKilik Kuo <kikuo@mozilla.com>
Thu, 21 Apr 2016 16:22:47 +0800
changeset 292697 5865e1748594
parent 292696 fee39861e880
child 292698 fddffdeab170
push id332
push usergachen@mozilla.com
push dateThu, 21 Apr 2016 08:26:54 +0000
reviewersxeonchen, jocheng
bugs1266280
milestone44.0
Bug 1266280 - Build Failure on b2g44_v25, gfx namespace is not used because it is placed into different chunk by unify building.; r=xeonchen a=jocheng MozReview-Commit-ID: 2nqgtup1tRh
gfx/layers/basic/GrallocTextureHostBasic.cpp
--- a/gfx/layers/basic/GrallocTextureHostBasic.cpp
+++ b/gfx/layers/basic/GrallocTextureHostBasic.cpp
@@ -8,16 +8,17 @@
 #include "mozilla/layers/SharedBufferManagerParent.h"
 
 #if ANDROID_VERSION >= 17
 #include <ui/Fence.h>
 #endif
 
 namespace mozilla {
 namespace layers {
+using namespace gfx;
 
 static SurfaceFormat
 HalFormatToSurfaceFormat(int aHalFormat, TextureFlags aFlags)
 {
   bool swapRB = bool(aFlags & TextureFlags::RB_SWAPPED);
   switch (aHalFormat) {
   case android::PIXEL_FORMAT_BGRA_8888:
     return swapRB ? gfx::SurfaceFormat::R8G8B8A8 : gfx::SurfaceFormat::B8G8R8A8;