From 1ec03f33cf493352174c748662d4a3cca29f78fd Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 14 Jun 2017 09:49:26 -0400 Subject: Converts remaining rect ops from GrLegacyMeshDrawOp to GrMeshDrawOp subclasses. Consolidates op factory functions to a rewritten GrRectOpFactory. Removes GrRenderTargetContext::drawNonAAFilledRect() in favor of creating and adding ops directly by the callers. Change-Id: I57e5fc739bf4e92b4a4710c739e6d22cce82a479 Reviewed-on: https://skia-review.googlesource.com/17711 Commit-Queue: Brian Salomon Reviewed-by: Robert Phillips --- gm/rrects.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gm/rrects.cpp') diff --git a/gm/rrects.cpp b/gm/rrects.cpp index 23f576b5e9..3124895a49 100644 --- a/gm/rrects.cpp +++ b/gm/rrects.cpp @@ -12,7 +12,7 @@ #include "GrRenderTargetContextPriv.h" #include "effects/GrRRectEffect.h" #include "ops/GrDrawOp.h" -#include "ops/GrNonAAFillRectOp.h" +#include "ops/GrRectOpFactory.h" #endif #include "SkRRect.h" @@ -117,12 +117,9 @@ protected: bounds.outset(2.f, 2.f); renderTargetContext->priv().testingOnly_addDrawOp( - GrNonAAFillRectOp::Make(std::move(grPaint), - SkMatrix::I(), - bounds, - nullptr, - nullptr, - GrAAType::kNone)); + GrRectOpFactory::MakeNonAAFill(std::move(grPaint), + SkMatrix::I(), bounds, + GrAAType::kNone)); } else { drew = false; } -- cgit v1.2.3