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

Unified Diff: src/core/SkSpriteBlitter.h

Issue 1156713004: remove bitmaps entirely from sprite blits (as source) (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/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 0bbc8561d0d441c9050fb7addc57d1862304fef9..5cc483f6826f13f152087615478f9be8704aae6e 100644
--- a/src/core/SkSpriteBlitter.h
+++ b/src/core/SkSpriteBlitter.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2006 The Android Open Source Project
*
@@ -6,7 +5,6 @@
* found in the LICENSE file.
*/
-
#ifndef SkSpriteBlitter_DEFINED
#define SkSpriteBlitter_DEFINED
@@ -20,31 +18,25 @@ class SkPaint;
class SkSpriteBlitter : public SkBlitter {
public:
- SkSpriteBlitter(const SkBitmap& source);
+ SkSpriteBlitter(const SkPixmap& source);
- virtual bool setup(const SkBitmap& device, int left, int top, const SkPaint& paint);
+ virtual void setup(const SkBitmap& device, int left, int top, const SkPaint&);
- // overrides
#ifdef SK_DEBUG
- virtual void blitH(int x, int y, int width);
- virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]);
- virtual void blitV(int x, int y, int height, SkAlpha alpha);
- virtual void blitMask(const SkMask&, const SkIRect& clip);
+ void blitH(int x, int y, int width) override;
+ void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) override;
+ void blitV(int x, int y, int height, SkAlpha alpha) override;
+ void blitMask(const SkMask&, const SkIRect& clip) override;
#endif
- static SkSpriteBlitter* ChooseD16(const SkBitmap& source, const SkPaint&,
- SkTBlitterAllocator*);
- static SkSpriteBlitter* ChooseD32(const SkBitmap& source, const SkPaint&,
- SkTBlitterAllocator*);
+ static SkSpriteBlitter* ChooseD16(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
+ static SkSpriteBlitter* ChooseD32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
protected:
const SkBitmap* fDevice;
- const SkPixmap* fSource;
+ const SkPixmap fSource;
int fLeft, fTop;
const SkPaint* fPaint;
-
-private:
- SkAutoPixmapUnlock fUnlocker;
};
#endif
« 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