From 972b2f6041e0b591d9556fc874c24562733c50ce Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 31 Jul 2017 12:37:02 -0400 Subject: Initialize GrPipeline at construction. Change-Id: I44bfa3553786ad197acdf807b15155e61d4e5952 Reviewed-on: https://skia-review.googlesource.com/28623 Commit-Queue: Brian Salomon Reviewed-by: Greg Daniel Reviewed-by: Chris Dalton --- src/gpu/instanced/InstancedOp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gpu/instanced/InstancedOp.cpp') diff --git a/src/gpu/instanced/InstancedOp.cpp b/src/gpu/instanced/InstancedOp.cpp index ab2b7583c8..229a144f07 100644 --- a/src/gpu/instanced/InstancedOp.cpp +++ b/src/gpu/instanced/InstancedOp.cpp @@ -225,7 +225,6 @@ void InstancedOp::onExecute(GrOpFlushState* state) { state->gpu()->handleDirtyContext(); - GrPipeline pipeline; GrPipeline::InitArgs args; args.fAppliedClip = state->drawOpArgs().fAppliedClip; args.fCaps = &state->caps(); @@ -240,7 +239,7 @@ void InstancedOp::onExecute(GrOpFlushState* state) { } args.fProxy = state->drawOpArgs().fProxy; args.fDstProxy = state->drawOpArgs().fDstProxy; - pipeline.init(args); + GrPipeline pipeline(args); if (GrXferBarrierType barrierType = pipeline.xferBarrierType(*state->gpu()->caps())) { state->gpu()->xferBarrier(pipeline.renderTarget(), barrierType); -- cgit v1.2.3