diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-04 20:10:33 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-04 20:10:33 +0000 |
commit | ac9d306a92e569e85a7611e9db00943b5b551f1e (patch) | |
tree | 168e141c406948aad89ec41bb88b0c3260de2a5c /src/core/SkCoreBlitters.h | |
parent | 8d8bcf9f88be927f6d7e5167bb9220d62bf8afe3 (diff) |
speed up A8 by creating a new entry-point in SkDraw that blits the path's coverage directly into an A8 target, regardless of the previous pixel values.
R=bsalomon@google.com, mtklein@google.com
Review URL: https://codereview.chromium.org/56453002
git-svn-id: http://skia.googlecode.com/svn/trunk@12118 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkCoreBlitters.h')
-rw-r--r-- | src/core/SkCoreBlitters.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h index 9455509c48..673b874545 100644 --- a/src/core/SkCoreBlitters.h +++ b/src/core/SkCoreBlitters.h @@ -40,6 +40,17 @@ private: /////////////////////////////////////////////////////////////////////////////// +class SkA8_Coverage_Blitter : public SkRasterBlitter { +public: + SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint); + virtual void blitH(int x, int y, int width) SK_OVERRIDE; + virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) SK_OVERRIDE; + virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE; + virtual void blitRect(int x, int y, int width, int height) SK_OVERRIDE; + virtual void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE; + virtual const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE; +}; + class SkA8_Blitter : public SkRasterBlitter { public: SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); |