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

Unified Diff: gm/gm.cpp

Issue 811703005: SIMPLE_GM generates less code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Another Patch Set 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.cpp
diff --git a/gm/gm.cpp b/gm/gm.cpp
index 57c5c5ded64bfeae76a10bbb56d1d55d83a5c3cc..ff17644fffc09bd2c7fcd0140565ac4eac28e72d 100644
--- a/gm/gm.cpp
+++ b/gm/gm.cpp
@@ -66,3 +66,15 @@ void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) {
// need to explicitly declare this, or we get some weird infinite loop llist
template GMRegistry* GMRegistry::gHead;
+
+void skiagm::SimpleGM::onDraw(SkCanvas* canvas) {
+ fDrawProc(canvas);
+}
+
+SkISize skiagm::SimpleGM::onISize() {
+ return fSize;
+}
+
+SkString skiagm::SimpleGM::onShortName() {
+ return fName;
+}
« gm/gm.h ('K') | « gm/gm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698