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 writeEncodedString(const void* value, size_t byteLength, SkPaint::TextE
ncoding encoding); | |
58 void writeFunctionPtr(void* ptr) { fWriter.writePtr(ptr); } | 57 void writeFunctionPtr(void* ptr) { fWriter.writePtr(ptr); } |
59 | 58 |
60 void writeFlattenable(const SkFlattenable* flattenable); | 59 void writeFlattenable(const SkFlattenable* flattenable); |
61 void writeColor(const SkColor& color); | 60 void writeColor(const SkColor& color); |
62 void writeColorArray(const SkColor* color, uint32_t count); | 61 void writeColorArray(const SkColor* color, uint32_t count); |
63 void writePoint(const SkPoint& point); | 62 void writePoint(const SkPoint& point); |
64 void writePointArray(const SkPoint* point, uint32_t count); | 63 void writePointArray(const SkPoint* point, uint32_t count); |
65 void writeMatrix(const SkMatrix& matrix); | 64 void writeMatrix(const SkMatrix& matrix); |
66 void writeIRect(const SkIRect& rect); | 65 void writeIRect(const SkIRect& rect); |
67 void writeRect(const SkRect& rect); | 66 void writeRect(const SkRect& rect); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 SkBitmapHeap* fBitmapHeap; | 111 SkBitmapHeap* fBitmapHeap; |
113 SkRefCntSet* fTFSet; | 112 SkRefCntSet* fTFSet; |
114 | 113 |
115 SkAutoTUnref<SkPixelSerializer> fPixelSerializer; | 114 SkAutoTUnref<SkPixelSerializer> fPixelSerializer; |
116 | 115 |
117 // Only used if we do not have an fFactorySet | 116 // Only used if we do not have an fFactorySet |
118 SkTHashMap<SkString, uint32_t> fFlattenableDict; | 117 SkTHashMap<SkString, uint32_t> fFlattenableDict; |
119 }; | 118 }; |
120 | 119 |
121 #endif // SkWriteBuffer_DEFINED | 120 #endif // SkWriteBuffer_DEFINED |
OLD | NEW |