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

Unified Diff: src/core/SkSpriteBlitter.h

Issue 1143173011: use pixmaps for dst in sprites -- NO BITMAPS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add dox 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/SkDraw.cpp ('k') | src/core/SkSpriteBlitterTemplate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpriteBlitter.h
diff --git a/src/core/SkSpriteBlitter.h b/src/core/SkSpriteBlitter.h
index 5cc483f6826f13f152087615478f9be8704aae6e..536c8926d47d1e92a27d121be49cfef77a0a3729 100644
--- a/src/core/SkSpriteBlitter.h
+++ b/src/core/SkSpriteBlitter.h
@@ -8,9 +8,8 @@
#ifndef SkSpriteBlitter_DEFINED
#define SkSpriteBlitter_DEFINED
-#include "SkBitmap.h"
-#include "SkBitmapProcShader.h"
#include "SkBlitter.h"
+#include "SkPixmap.h"
#include "SkShader.h"
#include "SkSmallAllocator.h"
@@ -20,7 +19,7 @@ class SkSpriteBlitter : public SkBlitter {
public:
SkSpriteBlitter(const SkPixmap& source);
- virtual void setup(const SkBitmap& device, int left, int top, const SkPaint&);
+ virtual void setup(const SkPixmap& dst, int left, int top, const SkPaint&);
#ifdef SK_DEBUG
void blitH(int x, int y, int width) override;
@@ -33,7 +32,7 @@ public:
static SkSpriteBlitter* ChooseD32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
protected:
- const SkBitmap* fDevice;
+ SkPixmap fDst;
const SkPixmap fSource;
int fLeft, fTop;
const SkPaint* fPaint;
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/core/SkSpriteBlitterTemplate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698