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

Unified Diff: bench/ETCBitmapBench.cpp

Issue 1409993003: Misc: Don't run etc1 bench with invalid image and fix VS2015 build warning (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | tools/sk_tool_utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ETCBitmapBench.cpp
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp
index d4068ca88e069e575c04185dc2648cb8eb58262d..fe6fe06057ec1d1ea0ba87bb0796ad31b7b2da56 100644
--- a/bench/ETCBitmapBench.cpp
+++ b/bench/ETCBitmapBench.cpp
@@ -123,7 +123,7 @@ public:
: fDecompress(decompress), fBackend(backend) { }
bool isSuitableFor(Backend backend) override {
- return backend == this->fBackend;
+ return SkToBool(fImage) && backend == this->fBackend;
}
protected:
« no previous file with comments | « no previous file | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698