OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkWriteBuffer_DEFINED | 9 #ifndef SkWriteBuffer_DEFINED |
10 #define SkWriteBuffer_DEFINED | 10 #define SkWriteBuffer_DEFINED |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void writeByteArray(const void* data, size_t size); | 47 void writeByteArray(const void* data, size_t size); |
48 void writeDataAsByteArray(SkData* data) { this->writeByteArray(data->data(),
data->size()); } | 48 void writeDataAsByteArray(SkData* data) { this->writeByteArray(data->data(),
data->size()); } |
49 void writeBool(bool value); | 49 void writeBool(bool value); |
50 void writeScalar(SkScalar value); | 50 void writeScalar(SkScalar value); |
51 void writeScalarArray(const SkScalar* value, uint32_t count); | 51 void writeScalarArray(const SkScalar* value, uint32_t count); |
52 void writeInt(int32_t value); | 52 void writeInt(int32_t value); |
53 void writeIntArray(const int32_t* value, uint32_t count); | 53 void writeIntArray(const int32_t* value, uint32_t count); |
54 void writeUInt(uint32_t value); | 54 void writeUInt(uint32_t value); |
55 void write32(int32_t value); | 55 void write32(int32_t value); |
56 void writeString(const char* value); | 56 void writeString(const char* value); |
57 void writeFunctionPtr(void* ptr) { fWriter.writePtr(ptr); } | |
58 | 57 |
59 void writeFlattenable(const SkFlattenable* flattenable); | 58 void writeFlattenable(const SkFlattenable* flattenable); |
60 void writeColor(const SkColor& color); | 59 void writeColor(const SkColor& color); |
61 void writeColorArray(const SkColor* color, uint32_t count); | 60 void writeColorArray(const SkColor* color, uint32_t count); |
62 void writePoint(const SkPoint& point); | 61 void writePoint(const SkPoint& point); |
63 void writePointArray(const SkPoint* point, uint32_t count); | 62 void writePointArray(const SkPoint* point, uint32_t count); |
64 void writeMatrix(const SkMatrix& matrix); | 63 void writeMatrix(const SkMatrix& matrix); |
65 void writeIRect(const SkIRect& rect); | 64 void writeIRect(const SkIRect& rect); |
66 void writeRect(const SkRect& rect); | 65 void writeRect(const SkRect& rect); |
67 void writeRegion(const SkRegion& region); | 66 void writeRegion(const SkRegion& region); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 SkBitmapHeap* fBitmapHeap; | 110 SkBitmapHeap* fBitmapHeap; |
112 SkRefCntSet* fTFSet; | 111 SkRefCntSet* fTFSet; |
113 | 112 |
114 SkAutoTUnref<SkPixelSerializer> fPixelSerializer; | 113 SkAutoTUnref<SkPixelSerializer> fPixelSerializer; |
115 | 114 |
116 // Only used if we do not have an fFactorySet | 115 // Only used if we do not have an fFactorySet |
117 SkTHashMap<SkString, uint32_t> fFlattenableDict; | 116 SkTHashMap<SkString, uint32_t> fFlattenableDict; |
118 }; | 117 }; |
119 | 118 |
120 #endif // SkWriteBuffer_DEFINED | 119 #endif // SkWriteBuffer_DEFINED |
OLD | NEW |