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