| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #include "GrSurface.h" | 8 #include "GrSurface.h" |
| 9 #include "GrSurfacePriv.h" | 9 #include "GrSurfacePriv.h" |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const GrTexture* thisTex = this->asTexture(); | 118 const GrTexture* thisTex = this->asTexture(); |
| 119 if (thisTex && thisTex->internalHasPendingIO()) { | 119 if (thisTex && thisTex->internalHasPendingIO()) { |
| 120 return true; | 120 return true; |
| 121 } | 121 } |
| 122 const GrRenderTarget* thisRT = this->asRenderTarget(); | 122 const GrRenderTarget* thisRT = this->asRenderTarget(); |
| 123 if (thisRT && thisRT->internalHasPendingIO()) { | 123 if (thisRT && thisRT->internalHasPendingIO()) { |
| 124 return true; | 124 return true; |
| 125 } | 125 } |
| 126 return false; | 126 return false; |
| 127 } | 127 } |
| 128 |
| 129 void GrSurface::onRelease() { |
| 130 this->invokeReleaseProc(); |
| 131 this->INHERITED::onRelease(); |
| 132 } |
| 133 |
| 134 void GrSurface::onAbandon() { |
| 135 this->invokeReleaseProc(); |
| 136 this->INHERITED::onAbandon(); |
| 137 } |
| OLD | NEW |