OLD | NEW |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void onAbandon() override; | 64 void onAbandon() override; |
65 void onRelease() override; | 65 void onRelease() override; |
66 | 66 |
67 private: | 67 private: |
68 TexParams fTexParams; | 68 TexParams fTexParams; |
69 GrGpu::ResetTimestamp fTexParamsTimestamp; | 69 GrGpu::ResetTimestamp fTexParamsTimestamp; |
70 GrGLuint fTextureID; | 70 GrGLuint fTextureID; |
71 | 71 |
72 // We track this separately from GrGpuResource because this may be both a te
xture and a render | 72 // We track this separately from GrGpuResource because this may be both a te
xture and a render |
73 // target, and the texture may be wrapped while the render target is not. | 73 // target, and the texture may be wrapped while the render target is not. |
74 bool fIsWrapped; | 74 LifeCycle fTextureIDLifecycle; |
75 | 75 |
76 typedef GrTexture INHERITED; | 76 typedef GrTexture INHERITED; |
77 }; | 77 }; |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |