OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #ifndef SkPictureFlat_DEFINED | 7 #ifndef SkPictureFlat_DEFINED |
8 #define SkPictureFlat_DEFINED | 8 #define SkPictureFlat_DEFINED |
9 | 9 |
10 | 10 |
11 #include "SkBitmapHeap.h" | |
12 #include "SkChecksum.h" | 11 #include "SkChecksum.h" |
13 #include "SkChunkAlloc.h" | 12 #include "SkChunkAlloc.h" |
14 #include "SkReadBuffer.h" | 13 #include "SkReadBuffer.h" |
15 #include "SkWriteBuffer.h" | 14 #include "SkWriteBuffer.h" |
16 #include "SkPaint.h" | 15 #include "SkPaint.h" |
17 #include "SkPicture.h" | 16 #include "SkPicture.h" |
18 #include "SkPtrRecorder.h" | 17 #include "SkPtrRecorder.h" |
19 #include "SkTDynamicHash.h" | 18 #include "SkTDynamicHash.h" |
20 | 19 |
21 enum DrawType { | 20 enum DrawType { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void setupBuffer(SkReadBuffer& buffer) const { | 156 void setupBuffer(SkReadBuffer& buffer) const { |
158 buffer.setFactoryPlayback(fArray, fCount); | 157 buffer.setFactoryPlayback(fArray, fCount); |
159 } | 158 } |
160 | 159 |
161 private: | 160 private: |
162 int fCount; | 161 int fCount; |
163 SkFlattenable::Factory* fArray; | 162 SkFlattenable::Factory* fArray; |
164 }; | 163 }; |
165 | 164 |
166 #endif | 165 #endif |
OLD | NEW |