| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 SkValidatingReadBuffer_DEFINED | 8 #ifndef SkValidatingReadBuffer_DEFINED |
| 9 #define SkValidatingReadBuffer_DEFINED | 9 #define SkValidatingReadBuffer_DEFINED |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 int32_t readInt() override; | 35 int32_t readInt() override; |
| 36 SkScalar readScalar() override; | 36 SkScalar readScalar() override; |
| 37 uint32_t readUInt() override; | 37 uint32_t readUInt() override; |
| 38 int32_t read32() override; | 38 int32_t read32() override; |
| 39 | 39 |
| 40 // peek | 40 // peek |
| 41 uint8_t peekByte() override; | 41 uint8_t peekByte() override; |
| 42 | 42 |
| 43 // strings -- the caller is responsible for freeing the string contents | 43 // strings -- the caller is responsible for freeing the string contents |
| 44 void readString(SkString* string) override; | 44 void readString(SkString* string) override; |
| 45 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over
ride; | |
| 46 | 45 |
| 47 // common data structures | 46 // common data structures |
| 48 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; | 47 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; |
| 49 void skipFlattenable() override; | 48 void skipFlattenable() override; |
| 50 void readPoint(SkPoint* point) override; | 49 void readPoint(SkPoint* point) override; |
| 51 void readMatrix(SkMatrix* matrix) override; | 50 void readMatrix(SkMatrix* matrix) override; |
| 52 void readIRect(SkIRect* rect) override; | 51 void readIRect(SkIRect* rect) override; |
| 53 void readRect(SkRect* rect) override; | 52 void readRect(SkRect* rect) override; |
| 54 void readRRect(SkRRect* rrect) override; | 53 void readRRect(SkRRect* rrect) override; |
| 55 void readRegion(SkRegion* region) override; | 54 void readRegion(SkRegion* region) override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 81 static bool IsPtrAlign4(const void* ptr) { | 80 static bool IsPtrAlign4(const void* ptr) { |
| 82 return SkIsAlign4((uintptr_t)ptr); | 81 return SkIsAlign4((uintptr_t)ptr); |
| 83 } | 82 } |
| 84 | 83 |
| 85 bool fError; | 84 bool fError; |
| 86 | 85 |
| 87 typedef SkReadBuffer INHERITED; | 86 typedef SkReadBuffer INHERITED; |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 #endif // SkValidatingReadBuffer_DEFINED | 89 #endif // SkValidatingReadBuffer_DEFINED |
| OLD | NEW |