aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-27 18:02:57 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-27 18:02:57 +0000
commitc0c1daa7f60a88890a37bf31e5ce8ffa7d2d09a8 (patch)
treeb5a6d8d87822d9ca55dec44403e065710e41b829 /src/gpu
parent488379e5ac780e8f0a3724b5fcb6e636eefc0303 (diff)
Enable Scratch texture detach in SW path renderer's onDrawPath (again)
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp
index d2f73f2b70..5e4f6f1735 100644
--- a/src/gpu/GrSoftwarePathRenderer.cpp
+++ b/src/gpu/GrSoftwarePathRenderer.cpp
@@ -336,11 +336,7 @@ bool GrSoftwarePathRenderer::onDrawPath(const SkPath& path,
if (sw_draw_path_to_mask_texture(path, pathBounds,
fill, fContext,
translate, &ast, antiAlias)) {
-#if 1
- GrTexture* texture = ast.texture();
-#else
SkAutoTUnref<GrTexture> texture(ast.detach());
-#endif
GrAssert(NULL != texture);
GrDrawTarget::AutoDeviceCoordDraw adcd(target, stageMask);
enum {