Attempt 3: SkRasterPipelineBlitter: support A8
Now that SkOpts_hsw.cpp no longer hooks in SkRasterPipeline_opts,
it should be safe to try this again.
This reverts commit 86d55b312a2649d80890ccf75f24571ada0265f1.
Change-Id: I2d495600ca9d3a0f49c2e02fbaaae349cefac3a1
Reviewed-on: https://skia-review.googlesource.com/6985
Reviewed-by: Mike Klein <mtklein@chromium.org>
diff --git a/bench/CoverageBench.cpp b/bench/CoverageBench.cpp
index e1b53f8..ce590e5 100644
--- a/bench/CoverageBench.cpp
+++ b/bench/CoverageBench.cpp
@@ -34,6 +34,11 @@
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());