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

Unified Diff: bench/CoverageBench.cpp

Issue 1148793007: change SkDraw and all Blitters to use pixmap instead of bitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 6 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 | gm/fatpathfill.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/CoverageBench.cpp
diff --git a/bench/CoverageBench.cpp b/bench/CoverageBench.cpp
index 96eafaaace9f1d5a78e6e7ba69c35973274af087..135ef392333a0bf7b595fca81e197aef720a37bb 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;
« no previous file with comments | « no previous file | gm/fatpathfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698