aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SamplePathEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePathEffects.cpp')
-rw-r--r--samplecode/SamplePathEffects.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp
index a5f91c296e..f1574fbda8 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");