aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gm.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-23 10:31:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-23 10:31:45 -0800
commitcf5d9c993dcbd75d4cefe2d1de25c2b9645f6957 (patch)
tree4c8dd68d092a0c651aa9e5778e8bdae3f2dd44cf /gm/gm.h
parent7a2c8f3f28ff58432af313f2022a30164f5633dc (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/gm.h b/gm/gm.h
index 81744e2512..55820ac61c 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -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();
}