From 45fe9473d1f03d80eac0468b83c04f6f758471a0 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 14 Mar 2019 11:00:09 -0400 Subject: [PATCH] Update color type after color override in GrFillRectOp. Fixes const_color_processor GM in MSAA mode after https://skia.googlesource.com/skia/+/1d835423e1c6776c4cbdb91bd435d21a7c1e267c Change-Id: I07cbe17d8986405da5211e106dca58bfd61e6bbd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201228 Auto-Submit: Brian Salomon Commit-Queue: Michael Ludwig Reviewed-by: Michael Ludwig --- src/gpu/ops/GrFillRectOp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpu/ops/GrFillRectOp.cpp b/src/gpu/ops/GrFillRectOp.cpp index 94f90b3107..021841f513 100644 --- a/src/gpu/ops/GrFillRectOp.cpp +++ b/src/gpu/ops/GrFillRectOp.cpp @@ -150,6 +150,7 @@ public: for (int i = 0; i < this->quadCount(); ++i) { fDeviceQuads.metadata(i).fColor = colorOverride; } + fColorType = GrQuadPerEdgeAA::MinColorType(colorOverride); } return result;