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

Unified Diff: gm/gm.h

Issue 873753002: Spin off GM::runAsBench() from flags. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
« no previous file with comments | « gm/dashing.cpp ('k') | gm/multipicturedraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.h
diff --git a/gm/gm.h b/gm/gm.h
index 81744e2512625261c029d2fb68e926cc5cebdbad..55820ac61c2d9fe05af4bd0f99bd6e0179e91fc4 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();
}
« no previous file with comments | « gm/dashing.cpp ('k') | gm/multipicturedraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698