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

Side by Side Diff: gm/gm.h

Issue 178473006: DM: also run benches once. (Closed) Base URL: https://skia.googlesource.com/skia.git@dm
Patch Set: add note Created 6 years, 10 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 unified diff | Download patch
« no previous file with comments | « dm/DMUtil.cpp ('k') | gm/gm.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef skiagm_DEFINED 8 #ifndef skiagm_DEFINED
9 #define skiagm_DEFINED 9 #define skiagm_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 }; 59 };
60 60
61 void setMode(Mode mode) { fMode = mode; } 61 void setMode(Mode mode) { fMode = mode; }
62 Mode getMode() const { return fMode; } 62 Mode getMode() const { return fMode; }
63 63
64 void draw(SkCanvas*); 64 void draw(SkCanvas*);
65 void drawBackground(SkCanvas*); 65 void drawBackground(SkCanvas*);
66 void drawContent(SkCanvas*); 66 void drawContent(SkCanvas*);
67 67
68 SkISize getISize() { return this->onISize(); } 68 SkISize getISize() { return this->onISize(); }
69 const char* shortName(); 69 const char* getName();
70 70
71 uint32_t getFlags() const { 71 uint32_t getFlags() const {
72 return this->onGetFlags(); 72 return this->onGetFlags();
73 } 73 }
74 74
75 SkScalar width() { 75 SkScalar width() {
76 return SkIntToScalar(this->getISize().width()); 76 return SkIntToScalar(this->getISize().width());
77 } 77 }
78 SkScalar height() { 78 SkScalar height() {
79 return SkIntToScalar(this->getISize().height()); 79 return SkIntToScalar(this->getISize().height());
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 SkColor fBGColor; 131 SkColor fBGColor;
132 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 132 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
133 bool fHaveCalledOnceBeforeDraw; 133 bool fHaveCalledOnceBeforeDraw;
134 SkMatrix fStarterMatrix; 134 SkMatrix fStarterMatrix;
135 }; 135 };
136 136
137 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; 137 typedef SkTRegistry<GM*(*)(void*)> GMRegistry;
138 } 138 }
139 139
140 #endif 140 #endif
OLDNEW
« no previous file with comments | « dm/DMUtil.cpp ('k') | gm/gm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698