| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 size_t size() { return fReader.size(); } | 99 size_t size() { return fReader.size(); } |
| 100 size_t offset() { return fReader.offset(); } | 100 size_t offset() { return fReader.offset(); } |
| 101 bool eof() { return fReader.eof(); } | 101 bool eof() { return fReader.eof(); } |
| 102 virtual const void* skip(size_t size) { return fReader.skip(size); } | 102 virtual const void* skip(size_t size) { return fReader.skip(size); } |
| 103 void* readFunctionPtr() { return fReader.readPtr(); } | 103 void* readFunctionPtr() { return fReader.readPtr(); } |
| 104 | 104 |
| 105 // primitives | 105 // primitives |
| 106 virtual bool readBool(); | 106 virtual bool readBool(); |
| 107 virtual SkColor readColor(); | 107 virtual SkColor readColor(); |
| 108 virtual SkFixed readFixed(); | |
| 109 virtual int32_t readInt(); | 108 virtual int32_t readInt(); |
| 110 virtual SkScalar readScalar(); | 109 virtual SkScalar readScalar(); |
| 111 virtual uint32_t readUInt(); | 110 virtual uint32_t readUInt(); |
| 112 virtual int32_t read32(); | 111 virtual int32_t read32(); |
| 113 | 112 |
| 114 // strings -- the caller is responsible for freeing the string contents | 113 // strings -- the caller is responsible for freeing the string contents |
| 115 virtual void readString(SkString* string); | 114 virtual void readString(SkString* string); |
| 116 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi
ng); | 115 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi
ng); |
| 117 | 116 |
| 118 // common data structures | 117 // common data structures |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 SkPicture::InstallPixelRefProc fBitmapDecoder; | 237 SkPicture::InstallPixelRefProc fBitmapDecoder; |
| 239 | 238 |
| 240 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 239 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 241 // Debugging counter to keep track of how many bitmaps we | 240 // Debugging counter to keep track of how many bitmaps we |
| 242 // have decoded. | 241 // have decoded. |
| 243 int fDecodedBitmapIndex; | 242 int fDecodedBitmapIndex; |
| 244 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 243 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 245 }; | 244 }; |
| 246 | 245 |
| 247 #endif // SkReadBuffer_DEFINED | 246 #endif // SkReadBuffer_DEFINED |
| OLD | NEW |