Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: src/gpu/gl/GrGLTexture.cpp

Issue 13814015: Reland of 8525 with fix for case when GrRT outlives GrTexture. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLTexture.cpp
===================================================================
--- src/gpu/gl/GrGLTexture.cpp (revision 8570)
+++ src/gpu/gl/GrGLTexture.cpp (working copy)
@@ -34,8 +34,7 @@
vp.fBottom = 0;
vp.fHeight = textureDesc.fHeight;
- fRenderTarget = SkNEW_ARGS(GrGLRenderTarget,
- (gpu, *rtDesc, vp, fTexIDObj, this));
+ fRenderTarget.reset(SkNEW_ARGS(GrGLRenderTarget, (gpu, *rtDesc, vp, fTexIDObj, this)));
}
}
« src/gpu/GrTexture.cpp ('K') | « src/gpu/GrTexture.cpp ('k') | tests/GrSurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698