diff options
author | mtklein <mtklein@chromium.org> | 2015-01-23 10:31:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-23 10:31:45 -0800 |
commit | cf5d9c993dcbd75d4cefe2d1de25c2b9645f6957 (patch) | |
tree | 4c8dd68d092a0c651aa9e5778e8bdae3f2dd44cf /gm/gm.h | |
parent | 7a2c8f3f28ff58432af313f2022a30164f5633dc (diff) |
Spin off GM::runAsBench() from flags.
This will let us kill flags.
BUG=skia:
Review URL: https://codereview.chromium.org/873753002
Diffstat (limited to 'gm/gm.h')
-rw-r--r-- | gm/gm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,8 +53,6 @@ namespace skiagm { kGPUOnly_Flag = 1 << 9, - kAsBench_Flag = 1 << 10, // Run the GM as a benchmark in the bench tool - kNoBBH_Flag = 1 << 11, // May draw wrong using a bounding-box hierarchy }; @@ -74,6 +72,8 @@ namespace skiagm { SkISize getISize() { return this->onISize(); } const char* getName(); + virtual bool runAsBench() const { return false; } + uint32_t getFlags() const { return this->onGetFlags(); } |