From b9641bd55a8f63757a63d9302755feb55d2e9502 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 4 May 2017 10:57:40 -0400 Subject: force all colorfilters to implement 4f high-contrast gms differ at most by 1 bit Bug: skia: Change-Id: I1308bd105020ea3cd5a30fd3dd322ed134fb5ed5 Reviewed-on: https://skia-review.googlesource.com/15249 Commit-Queue: Mike Reed Reviewed-by: Mike Klein Reviewed-by: Florin Malita --- include/core/SkColorFilter.h | 2 +- include/effects/SkLumaColorFilter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h index f843df7064..5845573c42 100644 --- a/include/core/SkColorFilter.h +++ b/include/core/SkColorFilter.h @@ -72,7 +72,7 @@ public: */ virtual void filterSpan(const SkPMColor src[], int count, SkPMColor result[]) const = 0; - virtual void filterSpan4f(const SkPM4f src[], int count, SkPM4f result[]) const; + virtual void filterSpan4f(const SkPM4f src[], int count, SkPM4f result[]) const = 0; bool appendStages(SkRasterPipeline*, SkColorSpace*, SkArenaAlloc*, bool shaderIsOpaque) const; diff --git a/include/effects/SkLumaColorFilter.h b/include/effects/SkLumaColorFilter.h index 209394490d..cab675e5bc 100644 --- a/include/effects/SkLumaColorFilter.h +++ b/include/effects/SkLumaColorFilter.h @@ -29,6 +29,7 @@ public: static sk_sp Make(); void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const override; + void filterSpan4f(const SkPM4f src[], int count, SkPM4f result[]) const override; #if SK_SUPPORT_GPU sk_sp asFragmentProcessor(GrContext*, SkColorSpace*) const override; -- cgit v1.2.3