| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkOrderedReadBuffer_DEFINED | 9 #ifndef SkOrderedReadBuffer_DEFINED |
| 10 #define SkOrderedReadBuffer_DEFINED | 10 #define SkOrderedReadBuffer_DEFINED |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // common data structures | 54 // common data structures |
| 55 virtual SkFlattenable* readFlattenable(SkFlattenable::Type) SK_OVERRIDE; | 55 virtual SkFlattenable* readFlattenable(SkFlattenable::Type) SK_OVERRIDE; |
| 56 virtual void readPoint(SkPoint* point) SK_OVERRIDE; | 56 virtual void readPoint(SkPoint* point) SK_OVERRIDE; |
| 57 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; | 57 virtual void readMatrix(SkMatrix* matrix) SK_OVERRIDE; |
| 58 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; | 58 virtual void readIRect(SkIRect* rect) SK_OVERRIDE; |
| 59 virtual void readRect(SkRect* rect) SK_OVERRIDE; | 59 virtual void readRect(SkRect* rect) SK_OVERRIDE; |
| 60 virtual void readRegion(SkRegion* region) SK_OVERRIDE; | 60 virtual void readRegion(SkRegion* region) SK_OVERRIDE; |
| 61 virtual void readPath(SkPath* path) SK_OVERRIDE; | 61 virtual void readPath(SkPath* path) SK_OVERRIDE; |
| 62 | 62 |
| 63 // binary data and arrays | 63 // binary data and arrays |
| 64 virtual uint32_t readByteArray(void* value) SK_OVERRIDE; | 64 virtual uint32_t readByteArray(void* value, uint32_t size) SK_OVERRIDE; |
| 65 virtual uint32_t readColorArray(SkColor* colors) SK_OVERRIDE; | 65 virtual uint32_t readColorArray(SkColor* colors, uint32_t size) SK_OVERRIDE; |
| 66 virtual uint32_t readIntArray(int32_t* values) SK_OVERRIDE; | 66 virtual uint32_t readIntArray(int32_t* values, uint32_t size) SK_OVERRIDE; |
| 67 virtual uint32_t readPointArray(SkPoint* points) SK_OVERRIDE; | 67 virtual uint32_t readPointArray(SkPoint* points, uint32_t size) SK_OVERRIDE; |
| 68 virtual uint32_t readScalarArray(SkScalar* values) SK_OVERRIDE; | 68 virtual uint32_t readScalarArray(SkScalar* values, uint32_t size) SK_OVERRID
E; |
| 69 | 69 |
| 70 // helpers to get info about arrays and binary data | 70 // helpers to get info about arrays and binary data |
| 71 virtual uint32_t getArrayCount() SK_OVERRIDE; | 71 virtual uint32_t getArrayCount() SK_OVERRIDE; |
| 72 | 72 |
| 73 virtual void readBitmap(SkBitmap* bitmap) SK_OVERRIDE; | 73 virtual void readBitmap(SkBitmap* bitmap) SK_OVERRIDE; |
| 74 virtual SkTypeface* readTypeface() SK_OVERRIDE; | 74 virtual SkTypeface* readTypeface() SK_OVERRIDE; |
| 75 | 75 |
| 76 void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) { | 76 void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) { |
| 77 SkRefCnt_SafeAssign(fBitmapStorage, bitmapStorage); | 77 SkRefCnt_SafeAssign(fBitmapStorage, bitmapStorage); |
| 78 } | 78 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 129 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 130 // Debugging counter to keep track of how many bitmaps we | 130 // Debugging counter to keep track of how many bitmaps we |
| 131 // have decoded. | 131 // have decoded. |
| 132 int fDecodedBitmapIndex; | 132 int fDecodedBitmapIndex; |
| 133 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 133 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 134 | 134 |
| 135 typedef SkFlattenableReadBuffer INHERITED; | 135 typedef SkFlattenableReadBuffer INHERITED; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 #endif // SkOrderedReadBuffer_DEFINED | 138 #endif // SkOrderedReadBuffer_DEFINED |
| OLD | NEW |