Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 86c8ba90f8a24c18f14eb20dc03256f341d50aeb..1e78a70680f2b5d829ff1bfbc0fe9f3e4e503dc5 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -505,10 +505,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); |
bsalomon
2014/01/13 14:47:10
this NULL param to awo() is the rt, so the art bel
|
- GrContext::AutoRenderTarget(dev->context(), NULL); |
// setup the shader as the first color effect on the paint |
SkAutoTUnref<GrEffectRef> effect(shader->asNewEffect(dev->context(), skPaint)); |