Enable Scratch texture detach in SW path renderer's onDrawPath (again)
http://codereview.appspot.com/6331057/ git-svn-id: http://skia.googlecode.com/svn/trunk@4365 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
488379e5ac
commit
c0c1daa7f6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user