diff options
author | Mike Reed <reed@google.com> | 2017-06-02 23:14:07 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-03 11:56:55 +0000 |
commit | b5d9e85c028f937991efac755a6da02ec1977f80 (patch) | |
tree | 880a6866efb2ab2490a92e3f3bd06fd40f9904f5 /src/core/SkCoreBlitters.h | |
parent | 4833950b754d076e725d592e53bfd2ed22d6d669 (diff) |
remove unused blitters
Bug: skia:
Change-Id: Iaa2ead32a4025071c3592f83d47f174ffeb63a49
Reviewed-on: https://skia-review.googlesource.com/18530
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkCoreBlitters.h')
-rw-r--r-- | src/core/SkCoreBlitters.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h index bc25db935a..8ef0a85d92 100644 --- a/src/core/SkCoreBlitters.h +++ b/src/core/SkCoreBlitters.h @@ -62,45 +62,6 @@ public: const SkPixmap* justAnOpaqueColor(uint32_t*) override; }; -class SkA8_Blitter : public SkRasterBlitter { -public: - SkA8_Blitter(const SkPixmap& 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; - -private: - unsigned fSrcA; - - // illegal - SkA8_Blitter& operator=(const SkA8_Blitter&); - - typedef SkRasterBlitter INHERITED; -}; - -class SkA8_Shader_Blitter : public SkShaderBlitter { -public: - SkA8_Shader_Blitter(const SkPixmap& device, const SkPaint& paint, - SkShaderBase::Context* shaderContext); - ~SkA8_Shader_Blitter() override; - void blitH(int x, int y, int width) override; - void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) override; - void blitMask(const SkMask&, const SkIRect&) override; - -private: - SkXfermode* fXfermode; - SkPMColor* fBuffer; - uint8_t* fAAExpand; - - // illegal - SkA8_Shader_Blitter& operator=(const SkA8_Shader_Blitter&); - - typedef SkShaderBlitter INHERITED; -}; - //////////////////////////////////////////////////////////////// class SkARGB32_Blitter : public SkRasterBlitter { @@ -178,24 +139,6 @@ private: /////////////////////////////////////////////////////////////////////////////// -/* These return the correct subclass of blitter for their device config. - - Currently, they make the following assumptions about the state of the - paint: - - 1. If there is an xfermode, there will also be a shader - 2. If there is a colorfilter, there will be a shader that itself handles - calling the filter, so the blitter can always ignore the colorfilter obj - - These pre-conditions must be handled by the caller, in our case - SkBlitter::Choose(...) - */ - -SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, - SkShaderBase::Context* shaderContext, - SkArenaAlloc* allocator); - - // Neither of these ever returns nullptr, but this first factory may return a SkNullBlitter. SkBlitter* SkCreateRasterPipelineBlitter(const SkPixmap&, const SkPaint&, const SkMatrix& ctm, SkArenaAlloc*); |