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 SkGlyphCache_DEFINED | 10 #ifndef SkGlyphCache_DEFINED |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 SkGlyphCache::AttachCache(fCache); | 266 SkGlyphCache::AttachCache(fCache); |
267 fCache = NULL; | 267 fCache = NULL; |
268 } | 268 } |
269 } | 269 } |
270 | 270 |
271 private: | 271 private: |
272 SkGlyphCache* fCache; | 272 SkGlyphCache* fCache; |
273 | 273 |
274 static bool DetachProc(const SkGlyphCache*, void*); | 274 static bool DetachProc(const SkGlyphCache*, void*); |
275 }; | 275 }; |
| 276 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) |
276 | 277 |
277 #endif | 278 #endif |
OLD | NEW |