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: |