aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/CoverageBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/CoverageBench.cpp')
-rw-r--r--bench/CoverageBench.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/CoverageBench.cpp b/bench/CoverageBench.cpp
index e1b53f879d..ce590e5c49 100644
--- a/bench/CoverageBench.cpp
+++ b/bench/CoverageBench.cpp
@@ -34,6 +34,11 @@ public:
fPath.quadTo(250, 0, 0, 500);
fPixmap.alloc(SkImageInfo::MakeA8(500, 500));
+ if (!drawCoverage) {
+ // drawPathCoverage() goes out of its way to work fine with an uninitialized
+ // dst buffer, even in "SrcOver" mode, but ordinary drawing sure doesn't.
+ fPixmap.erase(0);
+ }
fIdentity.setIdentity();
fRC.setRect(fPath.getBounds().round());