From 6077057cae9f92b45e044ee1202d83fd9ce9d424 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 13 Jan 2014 15:57:05 +0000 Subject: [PATCH] Remove redundant auto rt object in skpaint2grpaintshader function. R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/133763006 git-svn-id: http://skia.googlecode.com/svn/trunk@13046 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/SkGpuDevice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index c997b79bde..39f9ef3d7c 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -506,10 +506,9 @@ inline bool skPaint2GrPaintShader(SkGpuDevice* dev, return skPaint2GrPaintNoShader(dev, skPaint, false, constantColor, grPaint); } - // SkShader::asNewEffect() may do offscreen rendering. Setup default drawing state - // Also require shader to set the render target . + // SkShader::asNewEffect() may do offscreen rendering. Setup default drawing state and require + // the shader to set a render target . GrContext::AutoWideOpenIdentityDraw awo(dev->context(), NULL); - GrContext::AutoRenderTarget(dev->context(), NULL); // setup the shader as the first color effect on the paint SkAutoTUnref effect(shader->asNewEffect(dev->context(), skPaint));