| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |