Index: gm/giantbitmap.cpp |
diff --git a/gm/giantbitmap.cpp b/gm/giantbitmap.cpp |
index ed4190a8145e0248a12e4e7cc17bfb018ceaf568..1a78fcfb90044092c7505b1fc85d2d2c97768fe6 100644 |
--- a/gm/giantbitmap.cpp |
+++ b/gm/giantbitmap.cpp |
@@ -71,6 +71,13 @@ public: |
} |
protected: |
+ virtual uint32_t onGetFlags() const SK_OVERRIDE { |
+ if (fDoFilter && fDoRotate && fMode != SkShader::kClamp_TileMode) { |
+ return kSkipTiled_Flag; |
+ } |
+ return 0; |
+ } |
+ |
virtual SkString onShortName() { |
SkString str("giantbitmap_"); |
switch (fMode) { |