Index: samplecode/SamplePathEffects.cpp |
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp |
index a5f91c296ebf884f45163fe25a2b1afbf42d7e36..e331b6d8621e4e01aa83e5be930362bbf9e8f444 100644 |
--- a/samplecode/SamplePathEffects.cpp |
+++ b/samplecode/SamplePathEffects.cpp |
@@ -96,6 +96,10 @@ class PathEffectView : public SampleView { |
public: |
PathEffectView() : fPhase(0) { |
+ } |
+ |
+protected: |
+ virtual void onceBeforeDraw() { |
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"); |