OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrMemoryPool_DEFINED | 8 #ifndef GrMemoryPool_DEFINED |
9 #define GrMemoryPool_DEFINED | 9 #define GrMemoryPool_DEFINED |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 enum { | 65 enum { |
66 // We assume this alignment is good enough for everybody. | 66 // We assume this alignment is good enough for everybody. |
67 kAlignment = 8, | 67 kAlignment = 8, |
68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment), | 68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment), |
69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment), | 69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment), |
70 }; | 70 }; |
71 size_t fPreallocSize; | 71 size_t fPreallocSize; |
72 size_t fMinAllocSize; | 72 size_t fMinAllocSize; |
73 BlockHeader* fHead; | 73 BlockHeader* fHead; |
74 BlockHeader* fTail; | 74 BlockHeader* fTail; |
75 #if GR_DEBUG | 75 #if SK_DEBUG |
76 int fAllocationCnt; | 76 int fAllocationCnt; |
77 #endif | 77 #endif |
78 }; | 78 }; |
79 | 79 |
80 #endif | 80 #endif |
OLD | NEW |