From 3ebd354730ea9590bf233deccfc24982ffe48a98 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 30 Jul 2018 14:36:53 -0400 Subject: For TextureOp + Alpha texture, xform paint color to dest color space This is an unfortunate amount of plumbing for this, but benchmarks confirm that we're better off doing this work in the vertex shader (with a ubyte attribute) than using a float4 attribute. Change-Id: I358d330ee452ea0a89cdd725019c8df2686036a0 Reviewed-on: https://skia-review.googlesource.com/144351 Reviewed-by: Brian Salomon Commit-Queue: Brian Osman --- gm/clockwise.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm') diff --git a/gm/clockwise.cpp b/gm/clockwise.cpp index 0ca6e0a567..00bc47ecda 100644 --- a/gm/clockwise.cpp +++ b/gm/clockwise.cpp @@ -168,7 +168,7 @@ void ClockwiseGM::onDraw(SkCanvas* canvas) { GrSamplerState::Filter::kNearest, 0xffffffff, {0,0,100,200}, {100,0,200,200}, GrAA::kNo, SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint, SkMatrix::I(), - nullptr); + nullptr, nullptr); } // Draw the test to an off-screen, bottom-up render target. @@ -183,7 +183,7 @@ void ClockwiseGM::onDraw(SkCanvas* canvas) { GrSamplerState::Filter::kNearest, 0xffffffff, {0,0,100,200}, {200,0,300,200}, GrAA::kNo, SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint, SkMatrix::I(), - nullptr); + nullptr, nullptr); } } -- cgit v1.2.3