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 28 matching lines...) Expand all Loading... |
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; | 43 virtual void skipFlattenable() SK_OVERRIDE; |
44 virtual void readPoint(SkPoint* point) SK_OVERRIDE; | 44 virtual void readPoint(SkPoint* point) SK_OVERRIDE; |
45 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; | 45 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; |
46 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; | 46 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; |
47 virtual void readRect(SkRect* rect) SK_OVERRIDE; | 47 virtual void readRect(SkRect* rect) SK_OVERRIDE; |
48 virtual void readRegion(SkRegion* region) SK_OVERRIDE; | 48 virtual void readRegion(SkRegion* region) SK_OVERRIDE; |
| 49 virtual void readPatch(SkPatch* patch) SK_OVERRIDE; |
49 virtual void readPath(SkPath* path) SK_OVERRIDE; | 50 virtual void readPath(SkPath* path) SK_OVERRIDE; |
50 | 51 |
51 // binary data and arrays | 52 // binary data and arrays |
52 virtual bool readByteArray(void* value, size_t size) SK_OVERRIDE; | 53 virtual bool readByteArray(void* value, size_t size) SK_OVERRIDE; |
53 virtual bool readColorArray(SkColor* colors, size_t size) SK_OVERRIDE; | 54 virtual bool readColorArray(SkColor* colors, size_t size) SK_OVERRIDE; |
54 virtual bool readIntArray(int32_t* values, size_t size) SK_OVERRIDE; | 55 virtual bool readIntArray(int32_t* values, size_t size) SK_OVERRIDE; |
55 virtual bool readPointArray(SkPoint* points, size_t size) SK_OVERRIDE; | 56 virtual bool readPointArray(SkPoint* points, size_t size) SK_OVERRIDE; |
56 virtual bool readScalarArray(SkScalar* values, size_t size) SK_OVERRIDE; | 57 virtual bool readScalarArray(SkScalar* values, size_t size) SK_OVERRIDE; |
57 | 58 |
58 // helpers to get info about arrays and binary data | 59 // helpers to get info about arrays and binary data |
(...skipping 15 matching lines...) Expand all Loading... |
74 static bool IsPtrAlign4(const void* ptr) { | 75 static bool IsPtrAlign4(const void* ptr) { |
75 return SkIsAlign4((uintptr_t)ptr); | 76 return SkIsAlign4((uintptr_t)ptr); |
76 } | 77 } |
77 | 78 |
78 bool fError; | 79 bool fError; |
79 | 80 |
80 typedef SkReadBuffer INHERITED; | 81 typedef SkReadBuffer INHERITED; |
81 }; | 82 }; |
82 | 83 |
83 #endif // SkValidatingReadBuffer_DEFINED | 84 #endif // SkValidatingReadBuffer_DEFINED |
OLD | NEW |