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 SkRecord_DEFINED | 8 #ifndef SkRecord_DEFINED |
9 #define SkRecord_DEFINED | 9 #define SkRecord_DEFINED |
10 | 10 |
| 11 #include "SkImage.h" |
11 #include "SkChunkAlloc.h" | 12 #include "SkChunkAlloc.h" |
12 #include "SkRecords.h" | 13 #include "SkRecords.h" |
13 #include "SkTLogic.h" | 14 #include "SkTLogic.h" |
14 #include "SkTemplates.h" | 15 #include "SkTemplates.h" |
15 | 16 |
16 // SkRecord (REC-ord) represents a sequence of SkCanvas calls, saved for future
use. | 17 // SkRecord (REC-ord) represents a sequence of SkCanvas calls, saved for future
use. |
17 // These future uses may include: replay, optimization, serialization, or combin
ations of those. | 18 // These future uses may include: replay, optimization, serialization, or combin
ations of those. |
18 // | 19 // |
19 // Though an enterprising user may find calling alloc(), append(), visit(), and
mutate() enough to | 20 // Though an enterprising user may find calling alloc(), append(), visit(), and
mutate() enough to |
20 // work with SkRecord, you probably want to look at SkRecorder which presents an
SkCanvas interface | 21 // work with SkRecord, you probably want to look at SkRecorder which presents an
SkCanvas interface |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 229 |
229 SkChunkAlloc fAlloc; | 230 SkChunkAlloc fAlloc; |
230 SkAutoTMalloc<Record> fRecords; | 231 SkAutoTMalloc<Record> fRecords; |
231 SkAutoTMalloc<Type8> fTypes; | 232 SkAutoTMalloc<Type8> fTypes; |
232 // fCount and fReserved measure both fRecords and fTypes, which always grow
in lock step. | 233 // fCount and fReserved measure both fRecords and fTypes, which always grow
in lock step. |
233 unsigned fCount; | 234 unsigned fCount; |
234 unsigned fReserved; | 235 unsigned fReserved; |
235 }; | 236 }; |
236 | 237 |
237 #endif//SkRecord_DEFINED | 238 #endif//SkRecord_DEFINED |
OLD | NEW |