Bug 1266280 - Build Failure on b2g44_v25, gfx namespace is not used because it is placed into different chunk by unify building.; r?xeonchen draft
authorKilik Kuo <kikuo@mozilla.com>
Thu, 21 Apr 2016 11:00:26 +0800
changeset 354525 bfd42b4302d41bd72ab11502551c346d736ce2ef
parent 353628 fee39861e88064b0238ae08bd19d61ad89f194bb
child 519030 75ef105c394f9ffc2185bbe26764e436182f9303
push id16108
push userkikuo@mozilla.com
push dateThu, 21 Apr 2016 03:01:24 +0000
reviewersxeonchen
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 MozReview-Commit-ID: HPnwNm3Ex5c
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;