Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Side by Side Diff: src/core/SkReadBuffer.h

Issue 1832223002: switch xfermodes over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698