| 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 #ifndef GrRenderTarget_DEFINED | 8 #ifndef GrRenderTarget_DEFINED |
| 9 #define GrRenderTarget_DEFINED | 9 #define GrRenderTarget_DEFINED |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 // override of GrResource | 157 // override of GrResource |
| 158 virtual void onAbandon() SK_OVERRIDE; | 158 virtual void onAbandon() SK_OVERRIDE; |
| 159 virtual void onRelease() SK_OVERRIDE; | 159 virtual void onRelease() SK_OVERRIDE; |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 friend class GrTexture; | 162 friend class GrTexture; |
| 163 // called by ~GrTexture to remove the non-ref'ed back ptr. | 163 // called by ~GrTexture to remove the non-ref'ed back ptr. |
| 164 void owningTextureDestroyed() { | 164 void owningTextureDestroyed() { |
| 165 SkASSERT(NULL != fTexture); | 165 SkASSERT(fTexture); |
| 166 fTexture = NULL; | 166 fTexture = NULL; |
| 167 } | 167 } |
| 168 | 168 |
| 169 GrStencilBuffer* fStencilBuffer; | 169 GrStencilBuffer* fStencilBuffer; |
| 170 GrTexture* fTexture; // not ref'ed | 170 GrTexture* fTexture; // not ref'ed |
| 171 | 171 |
| 172 SkIRect fResolveRect; | 172 SkIRect fResolveRect; |
| 173 | 173 |
| 174 typedef GrSurface INHERITED; | 174 typedef GrSurface INHERITED; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 #endif | 177 #endif |
| OLD | NEW |