Index: samplecode/SamplePathEffects.cpp |
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp |
index a5f91c296ebf884f45163fe25a2b1afbf42d7e36..f1574fbda8182904f60c8055cd6fa4f9dc51b0f6 100644 |
--- a/samplecode/SamplePathEffects.cpp |
+++ b/samplecode/SamplePathEffects.cpp |
@@ -96,6 +96,10 @@ class PathEffectView : public SampleView { |
public: |
PathEffectView() : fPhase(0) { |
+ } |
+ |
+protected: |
+ void onOnceBeforeDraw() SK_OVERRIDE { |
SkRandom rand; |
int steps = 20; |
SkScalar dist = SkIntToScalar(400); |
@@ -126,7 +130,6 @@ public: |
this->setBGColor(0xFFDDDDDD); |
} |
-protected: |
bool onQuery(SkEvent* evt) SK_OVERRIDE { |
if (SampleCode::TitleQ(*evt)) { |
SampleCode::TitleR(evt, "PathEffects"); |