aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/strokes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/strokes.cpp')
-rw-r--r--gm/strokes.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gm/strokes.cpp b/gm/strokes.cpp
index af01b9169e..cadd0d6d9e 100644
--- a/gm/strokes.cpp
+++ b/gm/strokes.cpp
@@ -80,8 +80,8 @@ private:
class Strokes2GM : public skiagm::GM {
SkPath fPath;
-public:
- Strokes2GM() {
+protected:
+ void onOnceBeforeDraw() SK_OVERRIDE {
SkRandom rand;
fPath.moveTo(0, 0);
for (int i = 0; i < 13; i++) {
@@ -91,7 +91,6 @@ public:
}
}
-protected:
SkString onShortName() SK_OVERRIDE {
return SkString("strokes_poly");