From 9a725dd9485654155e2e4196c32d372360bcdb61 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 20 Sep 2017 09:53:22 -0400 Subject: Use shader based blending to clamp kPlus mode w/F16 Bug: skia:6173 Change-Id: I21042d484d9a7b3eee04aa3301d9793d00ad6908 Reviewed-on: https://skia-review.googlesource.com/48183 Reviewed-by: Brian Salomon Commit-Queue: Brian Osman --- tests/OnFlushCallbackTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/OnFlushCallbackTest.cpp') diff --git a/tests/OnFlushCallbackTest.cpp b/tests/OnFlushCallbackTest.cpp index 51c1985ee1..e47a76bb52 100644 --- a/tests/OnFlushCallbackTest.cpp +++ b/tests/OnFlushCallbackTest.cpp @@ -64,14 +64,15 @@ public: FixedFunctionFlags fixedFunctionFlags() const override { return FixedFunctionFlags::kNone; } - RequiresDstTexture finalize(const GrCaps& caps, const GrAppliedClip*) override { + RequiresDstTexture finalize(const GrCaps& caps, const GrAppliedClip*, + GrPixelConfigIsClamped dstIsClamped) override { // Set the color to unknown because the subclass may change the color later. GrProcessorAnalysisColor gpColor; gpColor.setToUnknown(); // We ignore the clip so pass this rather than the GrAppliedClip param. static GrAppliedClip kNoClip; - return fHelper.xpRequiresDstTexture(caps, &kNoClip, GrProcessorAnalysisCoverage::kNone, - &gpColor); + return fHelper.xpRequiresDstTexture(caps, &kNoClip, dstIsClamped, + GrProcessorAnalysisCoverage::kNone, &gpColor); } protected: -- cgit v1.2.3