Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: samplecode/GMSampleView.h

Issue 888283002: allow GMs to animate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use SPACE to toggle animations Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gm/gm.h ('K') | « gm/gm.cpp ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/GMSampleView.h
diff --git a/samplecode/GMSampleView.h b/samplecode/GMSampleView.h
index c781cd0b8669de34fb86ef9a78cdad8185d535ec..a1d34846e8493ad68bb75084ae5ae322f97ac004 100644
--- a/samplecode/GMSampleView.h
+++ b/samplecode/GMSampleView.h
@@ -70,6 +70,10 @@ protected:
fGM->drawBackground(canvas);
}
+ bool onAnimatePulse(SkMSec now) SK_OVERRIDE {
+ return fGM->animatePulse(now);
+ }
+
private:
GM* fGM;
typedef SampleView INHERITED;
« gm/gm.h ('K') | « gm/gm.cpp ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698