diff options
author | reed <reed@google.com> | 2015-04-14 18:39:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-14 18:39:57 -0700 |
commit | dd83031b98db4c6d3d0de2353bf115152a7d1464 (patch) | |
tree | ad5d37b51be4935c20c413ec096ce9d084e13f51 /src/core/SkCoreBlitters.h | |
parent | c3c5990ac0f1063eb92a98b98a71314b5b5ef7e8 (diff) |
add new blit2 methods in support of antialiased hairlines
before:
9M 1 528µs 530µs 539µs 607µs 5% ▁▁▁▁▁▁▁▁█▂ 8888 path_hairline_small_AA_quad
after:
9M 1 355µs 356µs 358µs 375µs 2% ▂▁▁▁▁▁▁▁▁█ 8888 path_hairline_small_AA_quad
BUG=skia:
does require new baselines (bug chrome is guarded)
Review URL: https://codereview.chromium.org/1060153003
Diffstat (limited to 'src/core/SkCoreBlitters.h')
-rw-r--r-- | src/core/SkCoreBlitters.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h index f4a5d6f4db..acc18febed 100644 --- a/src/core/SkCoreBlitters.h +++ b/src/core/SkCoreBlitters.h @@ -120,6 +120,10 @@ public: virtual void blitRect(int x, int y, int width, int height); virtual void blitMask(const SkMask&, const SkIRect&); virtual const SkBitmap* justAnOpaqueColor(uint32_t*); +#ifndef SK_SUPPORT_LEGACY_BLITANTIH2V2 + void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; + void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; +#endif protected: SkColor fColor; @@ -140,6 +144,10 @@ public: SkARGB32_Opaque_Blitter(const SkBitmap& device, const SkPaint& paint) : INHERITED(device, paint) { SkASSERT(paint.getAlpha() == 0xFF); } virtual void blitMask(const SkMask&, const SkIRect&); +#ifndef SK_SUPPORT_LEGACY_BLITANTIH2V2 + void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; + void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; +#endif private: typedef SkARGB32_Blitter INHERITED; @@ -150,6 +158,10 @@ public: 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[]); +#ifndef SK_SUPPORT_LEGACY_BLITANTIH2V2 + void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; + void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; +#endif private: typedef SkARGB32_Opaque_Blitter INHERITED; |