OLD | NEW |
| 1 /* |
| 2 * Copyright 2014 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #ifndef SkRecord_DEFINED | 8 #ifndef SkRecord_DEFINED |
2 #define SkRecord_DEFINED | 9 #define SkRecord_DEFINED |
3 | 10 |
4 #include "SkChunkAlloc.h" | 11 #include "SkChunkAlloc.h" |
5 #include "SkRecords.h" | 12 #include "SkRecords.h" |
6 #include "SkTemplates.h" | 13 #include "SkTemplates.h" |
7 | 14 |
8 // SkRecord (REC-ord) represents a sequence of SkCanvas calls, saved for future
use. | 15 // SkRecord (REC-ord) represents a sequence of SkCanvas calls, saved for future
use. |
9 // These future uses may include: replay, optimization, serialization, or combin
ations of those. | 16 // These future uses may include: replay, optimization, serialization, or combin
ations of those. |
10 // | 17 // |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 SkChunkAlloc fAlloc; | 212 SkChunkAlloc fAlloc; |
206 SkAutoTMalloc<Record> fRecords; | 213 SkAutoTMalloc<Record> fRecords; |
207 SkAutoTMalloc<Type8> fTypes; | 214 SkAutoTMalloc<Type8> fTypes; |
208 // fCount and fReserved measure both fRecords and fTypes, which always grow
in lock step. | 215 // fCount and fReserved measure both fRecords and fTypes, which always grow
in lock step. |
209 unsigned fCount; | 216 unsigned fCount; |
210 unsigned fReserved; | 217 unsigned fReserved; |
211 const unsigned kFirstReserveCount; | 218 const unsigned kFirstReserveCount; |
212 }; | 219 }; |
213 | 220 |
214 #endif//SkRecord_DEFINED | 221 #endif//SkRecord_DEFINED |
OLD | NEW |