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

Unified Diff: src/core/SkSpriteBlitter.h

Issue 1144923005: use SkPixmap inside sprite blitters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/SkBlitter_Sprite.cpp ('k') | src/core/SkSpriteBlitter_ARGB32.cpp » ('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 f69a55a2a0bfdc79f483ce6a821beec0c1794d1b..0bbc8561d0d441c9050fb7addc57d1862304fef9 100644
--- a/src/core/SkSpriteBlitter.h
+++ b/src/core/SkSpriteBlitter.h
@@ -20,11 +20,9 @@ class SkPaint;
class SkSpriteBlitter : public SkBlitter {
public:
- SkSpriteBlitter(const SkBitmap& source);
- virtual ~SkSpriteBlitter();
+ SkSpriteBlitter(const SkBitmap& source);
- virtual void setup(const SkBitmap& device, int left, int top,
- const SkPaint& paint);
+ virtual bool setup(const SkBitmap& device, int left, int top, const SkPaint& paint);
// overrides
#ifdef SK_DEBUG
@@ -41,9 +39,12 @@ public:
protected:
const SkBitmap* fDevice;
- const SkBitmap* fSource;
+ const SkPixmap* fSource;
int fLeft, fTop;
const SkPaint* fPaint;
+
+private:
+ SkAutoPixmapUnlock fUnlocker;
};
#endif
« no previous file with comments | « src/core/SkBlitter_Sprite.cpp ('k') | src/core/SkSpriteBlitter_ARGB32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698