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

Side by Side Diff: src/gpu/gl/GrGLRenderTarget.h

Issue 19580003: Fix leak of GrGLTexID when its owning GrGLTexture has been abandoned. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrGLRenderTarget_DEFINED 9 #ifndef GrGLRenderTarget_DEFINED
10 #define GrGLRenderTarget_DEFINED 10 #define GrGLRenderTarget_DEFINED
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 GrGLuint fRTFBOID; 89 GrGLuint fRTFBOID;
90 GrGLuint fTexFBOID; 90 GrGLuint fTexFBOID;
91 91
92 GrGLuint fMSColorRenderbufferID; 92 GrGLuint fMSColorRenderbufferID;
93 93
94 // when we switch to this render target we want to set the viewport to 94 // when we switch to this render target we want to set the viewport to
95 // only render to to content area (as opposed to the whole allocation) and 95 // only render to to content area (as opposed to the whole allocation) and
96 // we want the rendering to be at top left (GL has origin in bottom left) 96 // we want the rendering to be at top left (GL has origin in bottom left)
97 GrGLIRect fViewport; 97 GrGLIRect fViewport;
98 98
99 // non-NULL if this RT was created by Gr with an associated GrGLTexture. 99 // non-NULL if this RT was created by Gr with an associated GrGLTexture.
robertphillips 2013/07/17 14:13:21 Would a SkRefPtr be better here?
100 GrGLTexID* fTexIDObj; 100 SkAutoTUnref<GrGLTexID> fTexIDObj;
101 101
102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); 102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID);
103 103
104 typedef GrRenderTarget INHERITED; 104 typedef GrRenderTarget INHERITED;
105 }; 105 };
106 106
107 #endif 107 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698