Index: gm/bitmapshader.cpp |
diff --git a/gm/bitmapshader.cpp b/gm/bitmapshader.cpp |
index 8085f5c42c701e10c0ae55d596bf1f155972ca5a..ac8bf663c983eb1c811c5da9854eeb89fbdbf242 100644 |
--- a/gm/bitmapshader.cpp |
+++ b/gm/bitmapshader.cpp |
@@ -41,15 +41,14 @@ static void adopt_shader(SkPaint* paint, SkShader* shader) { |
} |
class BitmapShaderGM : public GM { |
-public: |
- BitmapShaderGM() { |
+protected: |
+ void onOnceBeforeDraw() SK_OVERRIDE { |
this->setBGColor(SK_ColorGRAY); |
draw_bm(&fBitmap); |
draw_mask(&fMask); |
} |
-protected: |
virtual SkString onShortName() { |
return SkString("bitmapshaders"); |
} |