| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkReadBuffer_DEFINED | 8 #ifndef SkReadBuffer_DEFINED |
| 9 #define SkReadBuffer_DEFINED | 9 #define SkReadBuffer_DEFINED |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 SkImageFilter* readImageFilter() { return this->readFlattenable<SkImageFilte
r>(); } | 139 SkImageFilter* readImageFilter() { return this->readFlattenable<SkImageFilte
r>(); } |
| 140 SkMaskFilter* readMaskFilter() { return this->readFlattenable<SkMaskFilter
>(); } | 140 SkMaskFilter* readMaskFilter() { return this->readFlattenable<SkMaskFilter
>(); } |
| 141 sk_sp<SkPathEffect> readPathEffect() { | 141 sk_sp<SkPathEffect> readPathEffect() { |
| 142 return sk_sp<SkPathEffect>(this->readFlattenable<SkPathEffect>()); | 142 return sk_sp<SkPathEffect>(this->readFlattenable<SkPathEffect>()); |
| 143 } | 143 } |
| 144 sk_sp<SkRasterizer> readRasterizer() { | 144 sk_sp<SkRasterizer> readRasterizer() { |
| 145 return sk_sp<SkRasterizer>(this->readFlattenable<SkRasterizer>()); | 145 return sk_sp<SkRasterizer>(this->readFlattenable<SkRasterizer>()); |
| 146 } | 146 } |
| 147 sk_sp<SkShader> readShader() { return sk_sp<SkShader>(this->readFlattena
ble<SkShader>()); } | 147 sk_sp<SkShader> readShader() { return sk_sp<SkShader>(this->readFlattena
ble<SkShader>()); } |
| 148 SkXfermode* readXfermode() { return this->readFlattenable<SkXfermode>(
); } | 148 sk_sp<SkXfermode> readXfermode() { |
| 149 return sk_sp<SkXfermode>(this->readFlattenable<SkXfermode>()); |
| 150 } |
| 149 | 151 |
| 150 /** | 152 /** |
| 151 * Like readFlattenable() but explicitly just skips the data that was writt
en for the | 153 * Like readFlattenable() but explicitly just skips the data that was writt
en for the |
| 152 * flattenable (or the sentinel that there wasn't one). | 154 * flattenable (or the sentinel that there wasn't one). |
| 153 */ | 155 */ |
| 154 virtual void skipFlattenable(); | 156 virtual void skipFlattenable(); |
| 155 | 157 |
| 156 // binary data and arrays | 158 // binary data and arrays |
| 157 virtual bool readByteArray(void* value, size_t size); | 159 virtual bool readByteArray(void* value, size_t size); |
| 158 virtual bool readColorArray(SkColor* colors, size_t size); | 160 virtual bool readColorArray(SkColor* colors, size_t size); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 SkPicture::InstallPixelRefProc fBitmapDecoder; | 251 SkPicture::InstallPixelRefProc fBitmapDecoder; |
| 250 | 252 |
| 251 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 253 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 252 // Debugging counter to keep track of how many bitmaps we | 254 // Debugging counter to keep track of how many bitmaps we |
| 253 // have decoded. | 255 // have decoded. |
| 254 int fDecodedBitmapIndex; | 256 int fDecodedBitmapIndex; |
| 255 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 257 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 256 }; | 258 }; |
| 257 | 259 |
| 258 #endif // SkReadBuffer_DEFINED | 260 #endif // SkReadBuffer_DEFINED |
| OLD | NEW |