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

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

Issue 791493003: Skia: Track the fIsWrapped separately so that we delete correctly (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Comments + GlGRTexture Created 6 years 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
« no previous file with comments | « src/gpu/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGLTexture.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 GrGLTexture_DEFINED 9 #ifndef GrGLTexture_DEFINED
10 #define GrGLTexture_DEFINED 10 #define GrGLTexture_DEFINED
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void init(const GrSurfaceDesc&, const IDDesc&); 61 void init(const GrSurfaceDesc&, const IDDesc&);
62 62
63 virtual void onAbandon() SK_OVERRIDE; 63 virtual void onAbandon() SK_OVERRIDE;
64 virtual void onRelease() SK_OVERRIDE; 64 virtual void onRelease() SK_OVERRIDE;
65 65
66 private: 66 private:
67 TexParams fTexParams; 67 TexParams fTexParams;
68 GrGpu::ResetTimestamp fTexParamsTimestamp; 68 GrGpu::ResetTimestamp fTexParamsTimestamp;
69 GrGLuint fTextureID; 69 GrGLuint fTextureID;
70 70
71 // We track this separately from GrGpuResource because this may be both a te xture and a render
72 // target, and the texture may be wrapped while the render target is not.
73 bool fIsWrapped;
74
71 typedef GrTexture INHERITED; 75 typedef GrTexture INHERITED;
72 }; 76 };
73 77
74 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGLTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698