aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-25 14:37:11 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-25 14:37:11 +0000
commit042cb4769fb32ce9e6cb5553382845079d1ca1aa (patch)
treea6292500e6ff279823a41a3cfe0c5c6af412aa34 /src/gpu/GrSoftwarePathRenderer.cpp
parent34342f6f5127122ecc32166dcffa7f3d2a45c387 (diff)
Enable Scratch texture detach in SW path renderer's onDrawPath
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-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 bfad6dfb69..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 {