Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / skia / ext / image_operations_unittest.cc
index 73429fc..6152731 100644 (file)
@@ -535,7 +535,7 @@ TEST(ImageOperations, ResizeShouldAverageColors) {
 
   // For each method, downscale by 16 in each dimension,
   // and check each tested pixel against the expected average color.
-  bool all_methods_ok ALLOW_UNUSED = true;
+  bool all_methods_ok = true;
 
   for (size_t method_index = 0;
        method_index < arraysize(tested_methods);
@@ -550,11 +550,11 @@ TEST(ImageOperations, ResizeShouldAverageColors) {
     }
   }
 
-#if DEBUG_BITMAP_GENERATION
   if (!all_methods_ok) {
+#if DEBUG_BITMAP_GENERATION
     SaveBitmapToPNG(src, "/tmp/ResizeShouldAverageColors_src.png");
-  }
 #endif  // #if DEBUG_BITMAP_GENERATION
+  }
 }