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

Unified Diff: src/core/SkDeviceLooper.h

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 | « src/core/SkCoreBlitters.h ('k') | src/core/SkDeviceLooper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDeviceLooper.h
diff --git a/src/core/SkDeviceLooper.h b/src/core/SkDeviceLooper.h
index a218345ae8b6546bea963457ce69be9882275f70..dd346d7445594e7a26e3276929cbf365bc9bc13a 100644
--- a/src/core/SkDeviceLooper.h
+++ b/src/core/SkDeviceLooper.h
@@ -30,14 +30,13 @@
*/
class SkDeviceLooper {
public:
- SkDeviceLooper(const SkBitmap& base, const SkRasterClip&,
- const SkIRect& bounds, bool aa);
+ SkDeviceLooper(const SkPixmap& base, const SkRasterClip&, const SkIRect& bounds, bool aa);
~SkDeviceLooper();
- const SkBitmap& getBitmap() const {
+ const SkPixmap& getPixmap() const {
SkASSERT(kDone_State != fState);
- SkASSERT(fCurrBitmap);
- return *fCurrBitmap;
+ SkASSERT(fCurrDst);
+ return *fCurrDst;
}
const SkRasterClip& getRC() const {
@@ -61,7 +60,7 @@ public:
bool next();
private:
- const SkBitmap& fBaseBitmap;
+ const SkPixmap& fBaseDst;
const SkRasterClip& fBaseRC;
enum State {
@@ -71,10 +70,10 @@ private:
};
// storage for our tiled versions. Perhaps could use SkTLazy
- SkBitmap fSubsetBitmap;
+ SkPixmap fSubsetDst;
SkRasterClip fSubsetRC;
- const SkBitmap* fCurrBitmap;
+ const SkPixmap* fCurrDst;
const SkRasterClip* fCurrRC;
SkIRect fClippedBounds;
SkIPoint fCurrOffset;
« no previous file with comments | « src/core/SkCoreBlitters.h ('k') | src/core/SkDeviceLooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698