| 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 27 matching lines...) Expand all Loading... |
| 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 | 45 |
| 46 // common data structures | 46 // common data structures |
| 47 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; | 47 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; |
| 48 void skipFlattenable() override; | |
| 49 void readPoint(SkPoint* point) override; | 48 void readPoint(SkPoint* point) override; |
| 50 void readMatrix(SkMatrix* matrix) override; | 49 void readMatrix(SkMatrix* matrix) override; |
| 51 void readIRect(SkIRect* rect) override; | 50 void readIRect(SkIRect* rect) override; |
| 52 void readRect(SkRect* rect) override; | 51 void readRect(SkRect* rect) override; |
| 53 void readRRect(SkRRect* rrect) override; | 52 void readRRect(SkRRect* rrect) override; |
| 54 void readRegion(SkRegion* region) override; | 53 void readRegion(SkRegion* region) override; |
| 55 void readPath(SkPath* path) override; | 54 void readPath(SkPath* path) override; |
| 56 | 55 |
| 57 // binary data and arrays | 56 // binary data and arrays |
| 58 bool readByteArray(void* value, size_t size) override; | 57 bool readByteArray(void* value, size_t size) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 80 static bool IsPtrAlign4(const void* ptr) { | 79 static bool IsPtrAlign4(const void* ptr) { |
| 81 return SkIsAlign4((uintptr_t)ptr); | 80 return SkIsAlign4((uintptr_t)ptr); |
| 82 } | 81 } |
| 83 | 82 |
| 84 bool fError; | 83 bool fError; |
| 85 | 84 |
| 86 typedef SkReadBuffer INHERITED; | 85 typedef SkReadBuffer INHERITED; |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 #endif // SkValidatingReadBuffer_DEFINED | 88 #endif // SkValidatingReadBuffer_DEFINED |
| OLD | NEW |