diff options
author | halcanary <halcanary@google.com> | 2015-01-12 15:27:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-12 15:27:46 -0800 |
commit | f62c63490f0cba13eaadce720b58a95720b2df86 (patch) | |
tree | a9478bd775bef5568a80bdf7e51da6df8470610c /gm/gm.cpp | |
parent | 4fc48af0d7bec93a911d32330f251386a8adec98 (diff) |
SIMPLE_GM generates less code
Review URL: https://codereview.chromium.org/811703005
Diffstat (limited to 'gm/gm.cpp')
-rw-r--r-- | gm/gm.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; +} |