Index: gm/bitmapshader.cpp |
diff --git a/gm/bitmapshader.cpp b/gm/bitmapshader.cpp |
index 8085f5c42c701e10c0ae55d596bf1f155972ca5a..d071f6ecbe4870ccb4e4c8daa0af822a35185a4a 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: |
+ virtual void onOnceBeforeDraw() { |
this->setBGColor(SK_ColorGRAY); |
draw_bm(&fBitmap); |
draw_mask(&fMask); |
} |
-protected: |
virtual SkString onShortName() { |
return SkString("bitmapshaders"); |
} |