| 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 21 matching lines...) Expand all Loading... |
| 32 int32_t readInt() override; | 32 int32_t readInt() override; |
| 33 SkScalar readScalar() override; | 33 SkScalar readScalar() override; |
| 34 uint32_t readUInt() override; | 34 uint32_t readUInt() override; |
| 35 int32_t read32() override; | 35 int32_t read32() override; |
| 36 | 36 |
| 37 // strings -- the caller is responsible for freeing the string contents | 37 // strings -- the caller is responsible for freeing the string contents |
| 38 void readString(SkString* string) override; | 38 void readString(SkString* string) override; |
| 39 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over
ride; | 39 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over
ride; |
| 40 | 40 |
| 41 // common data structures | 41 // common data structures |
| 42 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; | 42 SkFlattenable* readFlattenable() override; |
| 43 void skipFlattenable() override; | 43 void skipFlattenable() override; |
| 44 void readPoint(SkPoint* point) override; | 44 void readPoint(SkPoint* point) override; |
| 45 void readMatrix(SkMatrix* matrix) override; | 45 void readMatrix(SkMatrix* matrix) override; |
| 46 void readIRect(SkIRect* rect) override; | 46 void readIRect(SkIRect* rect) override; |
| 47 void readRect(SkRect* rect) override; | 47 void readRect(SkRect* rect) override; |
| 48 void readRegion(SkRegion* region) override; | 48 void readRegion(SkRegion* region) override; |
| 49 void readPath(SkPath* path) override; | 49 void readPath(SkPath* path) override; |
| 50 | 50 |
| 51 // binary data and arrays | 51 // binary data and arrays |
| 52 bool readByteArray(void* value, size_t size) override; | 52 bool readByteArray(void* value, size_t size) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 static bool IsPtrAlign4(const void* ptr) { | 74 static bool IsPtrAlign4(const void* ptr) { |
| 75 return SkIsAlign4((uintptr_t)ptr); | 75 return SkIsAlign4((uintptr_t)ptr); |
| 76 } | 76 } |
| 77 | 77 |
| 78 bool fError; | 78 bool fError; |
| 79 | 79 |
| 80 typedef SkReadBuffer INHERITED; | 80 typedef SkReadBuffer INHERITED; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // SkValidatingReadBuffer_DEFINED | 83 #endif // SkValidatingReadBuffer_DEFINED |
| OLD | NEW |