| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef GrTexture_DEFINED | 9 #ifndef GrTexture_DEFINED |
| 10 #define GrTexture_DEFINED | 10 #define GrTexture_DEFINED |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 virtual ~GrTexture(); | 92 virtual ~GrTexture(); |
| 93 | 93 |
| 94 // GrResource overrides | 94 // GrResource overrides |
| 95 virtual void onRelease() SK_OVERRIDE; | 95 virtual void onRelease() SK_OVERRIDE; |
| 96 virtual void onAbandon() SK_OVERRIDE; | 96 virtual void onAbandon() SK_OVERRIDE; |
| 97 | 97 |
| 98 void validateDesc() const; | 98 void validateDesc() const; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 void abandonReleaseCommon(); | |
| 102 virtual void internal_dispose() const SK_OVERRIDE; | |
| 103 | |
| 104 enum MipMapsStatus { | 101 enum MipMapsStatus { |
| 105 kNotAllocated_MipMapsStatus, | 102 kNotAllocated_MipMapsStatus, |
| 106 kAllocated_MipMapsStatus, | 103 kAllocated_MipMapsStatus, |
| 107 kValid_MipMapsStatus | 104 kValid_MipMapsStatus |
| 108 }; | 105 }; |
| 109 | 106 |
| 110 MipMapsStatus fMipMapsStatus; | 107 MipMapsStatus fMipMapsStatus; |
| 111 int fShiftFixedX; | 108 int fShiftFixedX; |
| 112 int fShiftFixedY; | 109 int fShiftFixedY; |
| 113 | 110 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 fTexture.reset(SkSafeRef(texture)); | 146 fTexture.reset(SkSafeRef(texture)); |
| 150 return texture; | 147 return texture; |
| 151 } | 148 } |
| 152 | 149 |
| 153 private: | 150 private: |
| 154 SkAutoTUnref<GrTexture> fTexture; | 151 SkAutoTUnref<GrTexture> fTexture; |
| 155 SkIPoint fOffset; | 152 SkIPoint fOffset; |
| 156 }; | 153 }; |
| 157 | 154 |
| 158 #endif | 155 #endif |
| OLD | NEW |