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

Unified Diff: src/core/SkCoreBlitters.h

Issue 1164373003: Revert of change SkDraw and all Blitters to use pixmap instead of bitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkCanvas.cpp ('k') | src/core/SkDeviceLooper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCoreBlitters.h
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h
index 31f33979dbbda902c79de2dfc9ee70dfb2bbcea8..18821dc0d16a7a9228e72f1dd419716be62ee474 100644
--- a/src/core/SkCoreBlitters.h
+++ b/src/core/SkCoreBlitters.h
@@ -16,10 +16,10 @@
class SkRasterBlitter : public SkBlitter {
public:
- SkRasterBlitter(const SkPixmap& device) : fDevice(device) {}
+ SkRasterBlitter(const SkBitmap& device) : fDevice(device) {}
protected:
- const SkPixmap fDevice;
+ const SkBitmap& fDevice;
private:
typedef SkBlitter INHERITED;
@@ -32,7 +32,7 @@
* The blitter only ensures that the storage always holds a live object, but it may
* exchange that object.
*/
- SkShaderBlitter(const SkPixmap& device, const SkPaint& paint,
+ SkShaderBlitter(const SkBitmap& device, const SkPaint& paint,
SkShader::Context* shaderContext);
virtual ~SkShaderBlitter();
@@ -61,24 +61,24 @@
class SkA8_Coverage_Blitter : public SkRasterBlitter {
public:
- SkA8_Coverage_Blitter(const SkPixmap& device, const SkPaint& paint);
+ SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint);
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 blitRect(int x, int y, int width, int height) override;
void blitMask(const SkMask&, const SkIRect&) override;
- const SkPixmap* justAnOpaqueColor(uint32_t*) override;
+ const SkBitmap* justAnOpaqueColor(uint32_t*) override;
};
class SkA8_Blitter : public SkRasterBlitter {
public:
- SkA8_Blitter(const SkPixmap& device, const SkPaint& paint);
+ SkA8_Blitter(const SkBitmap& device, const SkPaint& paint);
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 blitRect(int x, int y, int width, int height);
virtual void blitMask(const SkMask&, const SkIRect&);
- virtual const SkPixmap* justAnOpaqueColor(uint32_t*);
+ virtual const SkBitmap* justAnOpaqueColor(uint32_t*);
private:
unsigned fSrcA;
@@ -91,7 +91,7 @@
class SkA8_Shader_Blitter : public SkShaderBlitter {
public:
- SkA8_Shader_Blitter(const SkPixmap& device, const SkPaint& paint,
+ SkA8_Shader_Blitter(const SkBitmap& device, const SkPaint& paint,
SkShader::Context* shaderContext);
virtual ~SkA8_Shader_Blitter();
virtual void blitH(int x, int y, int width);
@@ -113,13 +113,13 @@
class SkARGB32_Blitter : public SkRasterBlitter {
public:
- SkARGB32_Blitter(const SkPixmap& device, const SkPaint& paint);
+ SkARGB32_Blitter(const SkBitmap& device, const SkPaint& paint);
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 blitRect(int x, int y, int width, int height);
virtual void blitMask(const SkMask&, const SkIRect&);
- virtual const SkPixmap* justAnOpaqueColor(uint32_t*);
+ virtual const SkBitmap* justAnOpaqueColor(uint32_t*);
void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override;
void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override;
@@ -138,7 +138,7 @@
class SkARGB32_Opaque_Blitter : public SkARGB32_Blitter {
public:
- SkARGB32_Opaque_Blitter(const SkPixmap& device, const SkPaint& paint)
+ SkARGB32_Opaque_Blitter(const SkBitmap& device, const SkPaint& paint)
: INHERITED(device, paint) { SkASSERT(paint.getAlpha() == 0xFF); }
virtual void blitMask(const SkMask&, const SkIRect&);
void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override;
@@ -150,7 +150,7 @@
class SkARGB32_Black_Blitter : public SkARGB32_Opaque_Blitter {
public:
- SkARGB32_Black_Blitter(const SkPixmap& device, const SkPaint& paint)
+ SkARGB32_Black_Blitter(const SkBitmap& device, const SkPaint& paint)
: INHERITED(device, paint) {}
virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]);
void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override;
@@ -162,7 +162,7 @@
class SkARGB32_Shader_Blitter : public SkShaderBlitter {
public:
- SkARGB32_Shader_Blitter(const SkPixmap& device, const SkPaint& paint,
+ SkARGB32_Shader_Blitter(const SkBitmap& device, const SkPaint& paint,
SkShader::Context* shaderContext);
virtual ~SkARGB32_Shader_Blitter();
void blitH(int x, int y, int width) override;
@@ -200,7 +200,7 @@
SkBlitter::Choose(...)
*/
-SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint,
+SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint,
SkShader::Context* shaderContext,
SkTBlitterAllocator* allocator);
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkDeviceLooper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698