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
This commit is contained in:
commit-bot@chromium.org 2014-01-13 15:57:05 +00:00
parent 4db7a31678
commit 6077057cae

View File

@ -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<GrEffectRef> effect(shader->asNewEffect(dev->context(), skPaint));