| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 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 | 9 |
| 10 #ifndef SkMask_DEFINED | 10 #ifndef SkMask_DEFINED |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 fImage = maskImage; | 150 fImage = maskImage; |
| 151 } | 151 } |
| 152 | 152 |
| 153 ~SkAutoMaskFreeImage() { | 153 ~SkAutoMaskFreeImage() { |
| 154 SkMask::FreeImage(fImage); | 154 SkMask::FreeImage(fImage); |
| 155 } | 155 } |
| 156 | 156 |
| 157 private: | 157 private: |
| 158 uint8_t* fImage; | 158 uint8_t* fImage; |
| 159 }; | 159 }; |
| 160 #define SkAutoMaskFreeImage(...) SK_REQUIRE_LOCAL_VAR(SkAutoMaskFreeImage) |
| 160 | 161 |
| 161 #endif | 162 #endif |
| OLD | NEW |