| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google, Inc | 2 * Copyright 2014 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 #ifndef SkSmallAllocator_DEFINED | 8 #ifndef SkSmallAllocator_DEFINED |
| 9 #define SkSmallAllocator_DEFINED | 9 #define SkSmallAllocator_DEFINED |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Number of bytes used so far. | 140 // Number of bytes used so far. |
| 141 size_t fStorageUsed; | 141 size_t fStorageUsed; |
| 142 // Pad the storage size to be 4-byte aligned. | 142 // Pad the storage size to be 4-byte aligned. |
| 143 uint32_t fStorage[SkAlign4(kTotalBytes) >> 2]; | 143 uint32_t fStorage[SkAlign4(kTotalBytes) >> 2]; |
| 144 uint32_t fNumObjects; | 144 uint32_t fNumObjects; |
| 145 Rec fRecs[kMaxObjects]; | 145 Rec fRecs[kMaxObjects]; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // SkSmallAllocator_DEFINED | 148 #endif // SkSmallAllocator_DEFINED |
| OLD | NEW |