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

Unified Diff: src/core/SkBlitter.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/SkBlitMask_D32.cpp ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter.h
diff --git a/src/core/SkBlitter.h b/src/core/SkBlitter.h
index b8126c24c6ac05287187d88bf39d49dee0787ebb..695585a798f7df54576412a451f54406a8982ac7 100644
--- a/src/core/SkBlitter.h
+++ b/src/core/SkBlitter.h
@@ -8,11 +8,11 @@
#ifndef SkBlitter_DEFINED
#define SkBlitter_DEFINED
+#include "SkBitmap.h"
#include "SkBitmapProcShader.h"
#include "SkMask.h"
#include "SkMatrix.h"
#include "SkPaint.h"
-#include "SkPixmap.h"
#include "SkRefCnt.h"
#include "SkRegion.h"
#include "SkShader.h"
@@ -51,7 +51,7 @@
bitmap it draws into, and assign value. If not, return NULL and ignore
the value parameter.
*/
- virtual const SkPixmap* justAnOpaqueColor(uint32_t* value);
+ virtual const SkBitmap* justAnOpaqueColor(uint32_t* value);
// (x, y), (x + 1, y)
virtual void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) {
@@ -122,7 +122,7 @@
/** @name Factories
Return the correct blitter to use given the specified context.
*/
- static SkBlitter* Choose(const SkPixmap& dst,
+ static SkBlitter* Choose(const SkBitmap& device,
const SkMatrix& matrix,
const SkPaint& paint,
SkTBlitterAllocator*,
@@ -152,7 +152,7 @@
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& clip) override;
- const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
+ const SkBitmap* justAnOpaqueColor(uint32_t* value) override;
bool isNullBlitter() const override;
};
@@ -176,7 +176,7 @@
virtual void blitAntiRect(int x, int y, int width, int height,
SkAlpha leftAlpha, SkAlpha rightAlpha) override;
void blitMask(const SkMask&, const SkIRect& clip) override;
- const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
+ const SkBitmap* justAnOpaqueColor(uint32_t* value) override;
int requestRowsPreserved() const override {
return fBlitter->requestRowsPreserved();
@@ -211,7 +211,7 @@
virtual void blitAntiRect(int x, int y, int width, int height,
SkAlpha leftAlpha, SkAlpha rightAlpha) override;
void blitMask(const SkMask&, const SkIRect& clip) override;
- const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
+ const SkBitmap* justAnOpaqueColor(uint32_t* value) override;
int requestRowsPreserved() const override {
return fBlitter->requestRowsPreserved();
« no previous file with comments | « src/core/SkBlitMask_D32.cpp ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698