Index: gm/complexclip2.cpp |
diff --git a/gm/complexclip2.cpp b/gm/complexclip2.cpp |
index a55d0733e073de417927ddddba3e9e1ed67f783c..d8b2e2f06764a62c4e76702894d990d2c0e27aae 100644 |
--- a/gm/complexclip2.cpp |
+++ b/gm/complexclip2.cpp |
@@ -24,6 +24,10 @@ public: |
ComplexClip2GM(Clip clip, bool antiAlias) |
: fClip(clip) |
, fAntiAlias(antiAlias) { |
+ } |
+ |
+protected: |
+ virtual void onOnceBeforeDraw() { |
this->setBGColor(SkColorSetRGB(0xDD,0xA0,0xDD)); |
// offset the rects a bit so we get antialiasing even in the rect case |
@@ -91,8 +95,6 @@ public: |
} |
} |
-protected: |
- |
static const int kRows = 5; |
static const int kCols = 5; |
static const int kPadX = 20; |