Home
last modified time | relevance | path

Searched refs:readFlattenable (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/core/
DSkReadBuffer.h112 SkFlattenable* readFlattenable(SkFlattenable::Type);
113 template <typename T> sk_sp<T> readFlattenable() { in readFlattenable() function
114 return sk_sp<T>((T*)this->readFlattenable(T::GetFlattenableType())); in readFlattenable()
116 sk_sp<SkColorFilter> readColorFilter() { return this->readFlattenable<SkColorFilterBase>(); } in readColorFilter()
118 sk_sp<SkDrawLooper> readDrawLooper() { return this->readFlattenable<SkDrawLooper>(); } in readDrawLooper()
120 sk_sp<SkImageFilter> readImageFilter() { return this->readFlattenable<SkImageFilter>(); } in readImageFilter()
121 sk_sp<SkMaskFilter> readMaskFilter() { return this->readFlattenable<SkMaskFilterBase>(); } in readMaskFilter()
122 sk_sp<SkPathEffect> readPathEffect() { return this->readFlattenable<SkPathEffect>(); } in readPathEffect()
123 sk_sp<SkShader> readShader() { return this->readFlattenable<SkShaderBase>(); } in readShader()
DSkFlattenable.cpp144 return sk_sp<SkFlattenable>(buffer.readFlattenable(type)); in Deserialize()
DSkReadBuffer.cpp464 SkFlattenable* SkReadBuffer::readFlattenable(SkFlattenable::Type ft) { in readFlattenable() function in SkReadBuffer
DSkPictureData.cpp381 return sk_sp<SkDrawable>((SkDrawable*)buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in create_drawable_from_buffer()
/external/skqp/src/core/
DSkReadBuffer.h121 SkFlattenable* readFlattenable(SkFlattenable::Type);
122 template <typename T> sk_sp<T> readFlattenable() { in readFlattenable() function
123 return sk_sp<T>((T*)this->readFlattenable(T::GetFlattenableType())); in readFlattenable()
125 sk_sp<SkColorFilter> readColorFilter() { return this->readFlattenable<SkColorFilter>(); } in readColorFilter()
126 sk_sp<SkDrawLooper> readDrawLooper() { return this->readFlattenable<SkDrawLooper>(); } in readDrawLooper()
127 sk_sp<SkImageFilter> readImageFilter() { return this->readFlattenable<SkImageFilter>(); } in readImageFilter()
128 sk_sp<SkMaskFilter> readMaskFilter() { return this->readFlattenable<SkMaskFilterBase>(); } in readMaskFilter()
129 sk_sp<SkPathEffect> readPathEffect() { return this->readFlattenable<SkPathEffect>(); } in readPathEffect()
130 sk_sp<SkShader> readShader() { return this->readFlattenable<SkShaderBase>(); } in readShader()
305 SkFlattenable* readFlattenable(SkFlattenable::Type) { return nullptr; } in readFlattenable() function
[all …]
DSkFlattenable.cpp144 return sk_sp<SkFlattenable>(buffer.readFlattenable(type)); in Deserialize()
DSkNormalMapSource.cpp227 sk_sp<SkShader> mapShader = buf.readFlattenable<SkShaderBase>(); in CreateProc()
DSkReadBuffer.cpp373 SkFlattenable* SkReadBuffer::readFlattenable(SkFlattenable::Type ft) { in readFlattenable() function in SkReadBuffer
DSkPictureData.cpp376 return sk_sp<SkDrawable>((SkDrawable*)buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in create_drawable_from_buffer()
/external/skia/tests/
DFlattenDrawableTest.cpp111 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
116 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
164 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
169 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
174 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
225 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
284 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
DSerializationTest.cpp56 *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType()); in Read()
/external/skqp/tests/
DFlattenDrawableTest.cpp111 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
116 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
164 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
169 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
174 buffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in CreateProc()
225 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
284 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
DSerializationTest.cpp58 *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType()); in Read()
/external/skqp/src/shaders/
DSkLightingShader.cpp431 sk_sp<SkNormalSource> normalSource(buf.readFlattenable<SkNormalSource>()); in CreateProc()
436 diffuseShader = buf.readFlattenable<SkShaderBase>(); in CreateProc()