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 SkOrderedReadBuffer_DEFINED | 9 #ifndef SkOrderedReadBuffer_DEFINED |
10 #define SkOrderedReadBuffer_DEFINED | 10 #define SkOrderedReadBuffer_DEFINED |
(...skipping 26 matching lines...) Expand all Loading... |
37 // primitives | 37 // primitives |
38 virtual bool readBool() SK_OVERRIDE; | 38 virtual bool readBool() SK_OVERRIDE; |
39 virtual SkColor readColor() SK_OVERRIDE; | 39 virtual SkColor readColor() SK_OVERRIDE; |
40 virtual SkFixed readFixed() SK_OVERRIDE; | 40 virtual SkFixed readFixed() SK_OVERRIDE; |
41 virtual int32_t readInt() SK_OVERRIDE; | 41 virtual int32_t readInt() SK_OVERRIDE; |
42 virtual SkScalar readScalar() SK_OVERRIDE; | 42 virtual SkScalar readScalar() SK_OVERRIDE; |
43 virtual uint32_t readUInt() SK_OVERRIDE; | 43 virtual uint32_t readUInt() SK_OVERRIDE; |
44 virtual int32_t read32() SK_OVERRIDE; | 44 virtual int32_t read32() SK_OVERRIDE; |
45 | 45 |
46 // strings -- the caller is responsible for freeing the string contents | 46 // strings -- the caller is responsible for freeing the string contents |
47 virtual char* readString() SK_OVERRIDE; | 47 virtual void readString(SkString* string) SK_OVERRIDE; |
48 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi
ng) SK_OVERRIDE; | 48 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi
ng) SK_OVERRIDE; |
49 | 49 |
50 // common data structures | 50 // common data structures |
51 virtual SkFlattenable* readFlattenable() SK_OVERRIDE; | 51 virtual SkFlattenable* readFlattenable() SK_OVERRIDE; |
52 virtual void readPoint(SkPoint* point) SK_OVERRIDE; | 52 virtual void readPoint(SkPoint* point) SK_OVERRIDE; |
53 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; | 53 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; |
54 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; | 54 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; |
55 virtual void readRect(SkRect* rect) SK_OVERRIDE; | 55 virtual void readRect(SkRect* rect) SK_OVERRIDE; |
56 virtual void readRegion(SkRegion* region) SK_OVERRIDE; | 56 virtual void readRegion(SkRegion* region) SK_OVERRIDE; |
57 virtual void readPath(SkPath* path) SK_OVERRIDE; | 57 virtual void readPath(SkPath* path) SK_OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 SkTDArray<SkFlattenable::Factory>* fFactoryTDArray; | 119 SkTDArray<SkFlattenable::Factory>* fFactoryTDArray; |
120 SkFlattenable::Factory* fFactoryArray; | 120 SkFlattenable::Factory* fFactoryArray; |
121 int fFactoryCount; | 121 int fFactoryCount; |
122 | 122 |
123 SkPicture::InstallPixelRefProc fBitmapDecoder; | 123 SkPicture::InstallPixelRefProc fBitmapDecoder; |
124 | 124 |
125 typedef SkFlattenableReadBuffer INHERITED; | 125 typedef SkFlattenableReadBuffer INHERITED; |
126 }; | 126 }; |
127 | 127 |
128 #endif // SkOrderedReadBuffer_DEFINED | 128 #endif // SkOrderedReadBuffer_DEFINED |
OLD | NEW |