| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual bool readIntArray(int32_t* values, size_t size) SK_OVERRIDE; | 66 virtual bool readIntArray(int32_t* values, size_t size) SK_OVERRIDE; |
| 67 virtual bool readPointArray(SkPoint* points, size_t size) SK_OVERRIDE; | 67 virtual bool readPointArray(SkPoint* points, size_t size) SK_OVERRIDE; |
| 68 virtual bool readScalarArray(SkScalar* values, size_t size) SK_OVERRIDE; | 68 virtual bool readScalarArray(SkScalar* values, size_t size) SK_OVERRIDE; |
| 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 virtual bool isAvailable(size_t size) const SK_OVERRIDE; |
| 77 |
| 76 void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) { | 78 void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) { |
| 77 SkRefCnt_SafeAssign(fBitmapStorage, bitmapStorage); | 79 SkRefCnt_SafeAssign(fBitmapStorage, bitmapStorage); |
| 78 } | 80 } |
| 79 | 81 |
| 80 void setTypefaceArray(SkTypeface* array[], int count) { | 82 void setTypefaceArray(SkTypeface* array[], int count) { |
| 81 fTFArray = array; | 83 fTFArray = array; |
| 82 fTFCount = count; | 84 fTFCount = count; |
| 83 } | 85 } |
| 84 | 86 |
| 85 /** | 87 /** |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 133 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 132 // Debugging counter to keep track of how many bitmaps we | 134 // Debugging counter to keep track of how many bitmaps we |
| 133 // have decoded. | 135 // have decoded. |
| 134 int fDecodedBitmapIndex; | 136 int fDecodedBitmapIndex; |
| 135 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 137 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 136 | 138 |
| 137 typedef SkFlattenableReadBuffer INHERITED; | 139 typedef SkFlattenableReadBuffer INHERITED; |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 #endif // SkOrderedReadBuffer_DEFINED | 142 #endif // SkOrderedReadBuffer_DEFINED |
| OLD | NEW |