From 92b47c49016749249ff8521e424c4373b4a74241 Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 24 Mar 2015 05:18:09 -0700 Subject: Revert of remove colorfilter native-565 support. complicating w/ no real value. (patchset #2 id:20001 of https://codereview.chromium.org/1015533011/) Reason for revert: skia/ext/benchmarking_canvas.cc references HasFilter16 :( Original issue's description: > remove colorfilter native-565 support. complicating w/ no real value. > > BUG=skia: > TBR= > > Committed: https://skia.googlesource.com/skia/+/2151353d161fe389cdc0db62cfe1932c7680f710 TBR=reed@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1022673007 --- include/effects/SkColorMatrixFilter.h | 2 ++ include/effects/SkModeColorFilter.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include/effects') diff --git a/include/effects/SkColorMatrixFilter.h b/include/effects/SkColorMatrixFilter.h index 4cb24bad5d..7ec0a6f65c 100644 --- a/include/effects/SkColorMatrixFilter.h +++ b/include/effects/SkColorMatrixFilter.h @@ -20,7 +20,9 @@ public: return SkNEW_ARGS(SkColorMatrixFilter, (array)); } + // overrides from SkColorFilter void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const SK_OVERRIDE; + void filterSpan16(const uint16_t src[], int count, uint16_t[]) const SK_OVERRIDE; uint32_t getFlags() const SK_OVERRIDE; bool asColorMatrix(SkScalar matrix[20]) const SK_OVERRIDE; SkColorFilter* newComposed(const SkColorFilter*) const SK_OVERRIDE; diff --git a/include/effects/SkModeColorFilter.h b/include/effects/SkModeColorFilter.h index 6d0d3ccaa0..4bb7a43db4 100644 --- a/include/effects/SkModeColorFilter.h +++ b/include/effects/SkModeColorFilter.h @@ -28,6 +28,7 @@ public: bool asColorMode(SkColor*, SkXfermode::Mode*) const SK_OVERRIDE; uint32_t getFlags() const SK_OVERRIDE; void filterSpan(const SkPMColor shader[], int count, SkPMColor result[]) const SK_OVERRIDE; + void filterSpan16(const uint16_t shader[], int count, uint16_t result[]) const SK_OVERRIDE; #ifndef SK_IGNORE_TO_STRING void toString(SkString* str) const SK_OVERRIDE { @@ -52,6 +53,7 @@ private: // cache SkPMColor fPMColor; SkXfermodeProc fProc; + SkXfermodeProc16 fProc16; void updateCache(); -- cgit v1.2.3