Bug 885266: Fix wrong ifdef in ShadowLayersUtilsGralloc; r=kanru
authorKyle Machulis <kyle@nonpolynomial.com>
Fri, 21 Jun 2013 12:33:12 -0700
changeset 147603 3185e7bf207cbf0f3777ce74ba2df3399d5aaf03
parent 147602 24d84081e4f432f523109c20a3d47217045bf23f
child 147604 c56f99cc6c717bf87c5661c21c2182882db58e5e
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskanru
bugs885266
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 885266: Fix wrong ifdef in ShadowLayersUtilsGralloc; r=kanru
gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp
--- a/gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp
+++ b/gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp
@@ -343,17 +343,17 @@ bool
 ISurfaceAllocator::PlatformAllocSurfaceDescriptor(const gfxIntSize& aSize,
                                                   gfxASurface::gfxContentType aContent,
                                                   uint32_t aCaps,
                                                   SurfaceDescriptor* aBuffer)
 {
 
   // Check for Nexus S to disable gralloc. We only check for this on ICS or
   // earlier, in hopes that JB will work.
-#ifdef ANDROID_VERSION <= 15
+#if ANDROID_VERSION <= 15
   char propValue[PROPERTY_VALUE_MAX];
   property_get("ro.product.device", propValue, "None");
   if (strcmp("crespo",propValue) == 0) {
     NS_WARNING("Nexus S has issues with gralloc, falling back to shmem");
     return false;
   }
 #endif