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 SkTagList_DEFINED | 10 #ifndef SkTagList_DEFINED |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 struct SkTagList { | 23 struct SkTagList { |
24 SkTagList* fNext; | 24 SkTagList* fNext; |
25 uint16_t fExtra16; | 25 uint16_t fExtra16; |
26 uint8_t fExtra8; | 26 uint8_t fExtra8; |
27 uint8_t fTag; | 27 uint8_t fTag; |
28 | 28 |
29 SkTagList(U8CPU tag) : fTag(SkToU8(tag)) | 29 SkTagList(U8CPU tag) : fTag(SkToU8(tag)) |
30 { | 30 { |
31 SkASSERT(tag < kSkTagListCount); | 31 SkASSERT(tag < kSkTagListCount); |
32 fNext = NULL; | 32 fNext = nullptr; |
33 fExtra16 = 0; | 33 fExtra16 = 0; |
34 fExtra8 = 0; | 34 fExtra8 = 0; |
35 } | 35 } |
36 virtual ~SkTagList(); | 36 virtual ~SkTagList(); |
37 | 37 |
38 static SkTagList* Find(SkTagList* head, U8CPU tag); | 38 static SkTagList* Find(SkTagList* head, U8CPU tag); |
39 static void DeleteTag(SkTagList** headptr, U8CPU tag); | 39 static void DeleteTag(SkTagList** headptr, U8CPU tag); |
40 static void DeleteAll(SkTagList* head); | 40 static void DeleteAll(SkTagList* head); |
41 }; | 41 }; |
42 | 42 |
43 #endif | 43 #endif |
OLD | NEW |