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

Unified Diff: bench/GMBench.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags 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 | « no previous file | gm/aaclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GMBench.cpp
diff --git a/bench/GMBench.cpp b/bench/GMBench.cpp
index bdf32904e84692ef70bfe8ea003eb5338185a99e..bcc83eb18c7d4cd7c9d77cd985939d08f06939c5 100644
--- a/bench/GMBench.cpp
+++ b/bench/GMBench.cpp
@@ -18,22 +18,7 @@ const char* GMBench::onGetName() {
}
bool GMBench::isSuitableFor(Backend backend) {
- uint32_t flags = fGM->getFlags();
- switch (backend) {
- case kGPU_Backend:
- return !(skiagm::GM::kSkipGPU_Flag & flags);
- case kPDF_Backend:
- return !(skiagm::GM::kSkipPDF_Flag & flags);
- case kRaster_Backend:
- // GM doesn't have an equivalent flag. If the GM has known issues with 565 then
- // we skip it for ALL raster configs in bench.
- return !(skiagm::GM::kSkip565_Flag & flags);
- case kNonRendering_Backend:
- return false;
- default:
- SkDEBUGFAIL("Unexpected backend type.");
- return false;
- }
+ return kNonRendering_Backend != backend;
}
void GMBench::onDraw(const int loops, SkCanvas* canvas) {
« no previous file with comments | « no previous file | gm/aaclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698