On Android, skip tiling for all giantbitmap variants.
authormtklein <mtklein@chromium.org>
Wed, 3 Sep 2014 20:22:46 +0000 (13:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Sep 2014 20:22:46 +0000 (13:22 -0700)
BUG=skia:
R=djsollen@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/537693002

gm/giantbitmap.cpp

index 1a78fcfb90044092c7505b1fc85d2d2c97768fe6..de908fef3403c19887b17c6e271bd107df76faa1 100644 (file)
@@ -72,10 +72,14 @@ public:
 
 protected:
     virtual uint32_t onGetFlags() const SK_OVERRIDE {
+#ifdef SK_BUILD_FOR_ANDROID
+        return kSkipTiled_Flag;
+#else
         if (fDoFilter && fDoRotate && fMode != SkShader::kClamp_TileMode) {
             return kSkipTiled_Flag;
         }
         return 0;
+#endif
     }
 
     virtual SkString onShortName() {