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 | 7 |
8 #ifndef SkReadBuffer_DEFINED | 8 #ifndef SkReadBuffer_DEFINED |
9 #define SkReadBuffer_DEFINED | 9 #define SkReadBuffer_DEFINED |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual int32_t readInt(); | 115 virtual int32_t readInt(); |
116 virtual SkScalar readScalar(); | 116 virtual SkScalar readScalar(); |
117 virtual uint32_t readUInt(); | 117 virtual uint32_t readUInt(); |
118 virtual int32_t read32(); | 118 virtual int32_t read32(); |
119 | 119 |
120 // peek | 120 // peek |
121 virtual uint8_t peekByte(); | 121 virtual uint8_t peekByte(); |
122 | 122 |
123 // strings -- the caller is responsible for freeing the string contents | 123 // strings -- the caller is responsible for freeing the string contents |
124 virtual void readString(SkString* string); | 124 virtual void readString(SkString* string); |
125 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi
ng); | |
126 | 125 |
127 // common data structures | 126 // common data structures |
128 virtual void readPoint(SkPoint* point); | 127 virtual void readPoint(SkPoint* point); |
129 SkPoint readPoint() { SkPoint p; this->readPoint(&p); return p; } | 128 SkPoint readPoint() { SkPoint p; this->readPoint(&p); return p; } |
130 virtual void readMatrix(SkMatrix* matrix); | 129 virtual void readMatrix(SkMatrix* matrix); |
131 virtual void readIRect(SkIRect* rect); | 130 virtual void readIRect(SkIRect* rect); |
132 virtual void readRect(SkRect* rect); | 131 virtual void readRect(SkRect* rect); |
133 virtual void readRRect(SkRRect* rrect); | 132 virtual void readRRect(SkRRect* rrect); |
134 virtual void readRegion(SkRegion* region); | 133 virtual void readRegion(SkRegion* region); |
135 | 134 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 SkPicture::InstallPixelRefProc fBitmapDecoder; | 276 SkPicture::InstallPixelRefProc fBitmapDecoder; |
278 | 277 |
279 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 278 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
280 // Debugging counter to keep track of how many bitmaps we | 279 // Debugging counter to keep track of how many bitmaps we |
281 // have decoded. | 280 // have decoded. |
282 int fDecodedBitmapIndex; | 281 int fDecodedBitmapIndex; |
283 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 282 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
284 }; | 283 }; |
285 | 284 |
286 #endif // SkReadBuffer_DEFINED | 285 #endif // SkReadBuffer_DEFINED |
OLD | NEW |