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