From 41e010cb901c0da9066c4df562030808c9ccd7f8 Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 9 Jun 2015 12:16:53 -0700 Subject: Revert[2] SkDraw and all Blitters to use pixmap instead of bitmapi This reverts commit b3f0ec9f9967da2f80f0d842cb7fd53617b48de3. BUG=skia: Review URL: https://codereview.chromium.org/1168303006 --- bench/CoverageBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/CoverageBench.cpp') diff --git a/bench/CoverageBench.cpp b/bench/CoverageBench.cpp index 96eafaaace..135ef39233 100644 --- a/bench/CoverageBench.cpp +++ b/bench/CoverageBench.cpp @@ -19,7 +19,7 @@ class DrawPathBench : public Benchmark { SkString fName; SkPath fPath; SkRasterClip fRC; - SkBitmap fBitmap; + SkAutoPixmapStorage fPixmap; SkMatrix fIdentity; SkDraw fDraw; bool fDrawCoverage; @@ -32,12 +32,12 @@ public: fPath.quadTo(500, 0, 500, 500); fPath.quadTo(250, 0, 0, 500); - fBitmap.allocPixels(SkImageInfo::MakeA8(500, 500)); + fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); fIdentity.setIdentity(); fRC.setRect(fPath.getBounds().round()); - fDraw.fBitmap = &fBitmap; + fDraw.fDst = fPixmap; fDraw.fMatrix = &fIdentity; fDraw.fClip = &fRC.bwRgn(); fDraw.fRC = &fRC; -- cgit v1.2.3