Home
last modified time | relevance | path

Searched refs:SkReadBuffer (Results 1 – 25 of 121) sorted by relevance

12345

/external/skia/src/core/
DSkReadBuffer.cpp40 flags |= SkReadBuffer::kScalarIsFloat_Flag; in default_flags()
42 flags |= SkReadBuffer::kPtrIs64Bit_Flag; in default_flags()
50 SkReadBuffer::SkReadBuffer() { in SkReadBuffer() function in SkReadBuffer
66 SkReadBuffer::SkReadBuffer(const void* data, size_t size) { in SkReadBuffer() function in SkReadBuffer
83 SkReadBuffer::SkReadBuffer(SkStream* stream) { in SkReadBuffer() function in SkReadBuffer
102 SkReadBuffer::~SkReadBuffer() { in ~SkReadBuffer()
106 void SkReadBuffer::setImageDeserializer(SkImageDeserializer* deserializer) { in setImageDeserializer()
110 bool SkReadBuffer::readBool() { in readBool()
114 SkColor SkReadBuffer::readColor() { in readColor()
118 int32_t SkReadBuffer::readInt() { in readInt()
[all …]
DSkPictureData.h27 class SkReadBuffer; variable
85 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&);
105 bool parseBuffer(SkReadBuffer& buffer);
108 const SkImage* getBitmapAsImage(SkReadBuffer* reader) const { in getBitmapAsImage()
113 const SkImage* getImage(SkReadBuffer* reader) const { in getImage()
118 const SkPath& getPath(SkReadBuffer* reader) const { in getPath()
123 const SkPicture* getPicture(SkReadBuffer* reader) const { in getPicture()
128 SkDrawable* getDrawable(SkReadBuffer* reader) const { in getDrawable()
134 const SkPaint* getPaint(SkReadBuffer* reader) const { in getPaint()
142 const SkTextBlob* getTextBlob(SkReadBuffer* reader) const { in getTextBlob()
[all …]
DSkReadBuffer.h36 class SkReadBuffer {
38 SkReadBuffer();
39 SkReadBuffer(const void* data, size_t size);
40 SkReadBuffer(SkStream* stream);
41 virtual ~SkReadBuffer();
43 virtual SkReadBuffer* clone(const void* data, size_t size) const { in clone()
44 return new SkReadBuffer(data, size); in clone()
DSkColorTable.cpp62 SkColorTable::SkColorTable(SkReadBuffer& buffer) {
63 if (buffer.isVersionLT(SkReadBuffer::kRemoveColorTableAlpha_Version)) {
88 SkColorTable* SkColorTable::Create(SkReadBuffer& buffer) { in Create()
89 if (buffer.isVersionLT(SkReadBuffer::kRemoveColorTableAlpha_Version)) { in Create()
DSkPictureData.cpp369 { SkPictInfo::kCrossProcess_Flag, SkReadBuffer::kCrossProcess_Flag }, in pictInfoFlagsToReadBufferFlags()
370 { SkPictInfo::kScalarIsFloat_Flag, SkReadBuffer::kScalarIsFloat_Flag }, in pictInfoFlagsToReadBufferFlags()
371 { SkPictInfo::kPtrIs64Bit_Flag, SkReadBuffer::kPtrIs64Bit_Flag }, in pictInfoFlagsToReadBufferFlags()
453 SkReadBuffer buffer(storage.get(), size); in parseStreamTag()
487 static const SkImage* create_image_from_buffer(SkReadBuffer& buffer) { in create_image_from_buffer()
490 static const SkVertices* create_vertices_from_buffer(SkReadBuffer& buffer) { in create_vertices_from_buffer()
495 static const SkImage* create_bitmap_image_from_buffer(SkReadBuffer& buffer) { in create_bitmap_image_from_buffer()
501 static const SkPicture* create_picture_from_buffer(SkReadBuffer& buffer) { in create_picture_from_buffer()
505 static const SkDrawable* create_drawable_from_buffer(SkReadBuffer& buffer) { in create_drawable_from_buffer()
510 bool new_array_from_buffer(SkReadBuffer& buffer, uint32_t inCount, in new_array_from_buffer()
[all …]
DSkPicturePlayback.h26 void draw(SkCanvas* canvas, SkPicture::AbortCallback*, SkReadBuffer* buffer);
40 void handleOp(SkReadBuffer* reader,
46 static DrawType ReadOpAndSize(SkReadBuffer* reader, uint32_t* size);
DSkPictureFlat.h136 template <typename T> T asValidEnum(SkReadBuffer* buffer, uint32_t candidate) { in asValidEnum()
145 static inline SkClipOp ClipParams_unpackRegionOp(SkReadBuffer* buffer, uint32_t packed) { in ClipParams_unpackRegionOp()
167 void setupBuffer(SkReadBuffer& buffer) const { in setupBuffer()
184 void setupBuffer(SkReadBuffer& buffer) const { in setupBuffer()
DSkValidatingReadBuffer.h20 class SkValidatingReadBuffer : public SkReadBuffer {
25 SkReadBuffer* clone(const void* data, size_t size) const override { in clone()
83 typedef SkReadBuffer INHERITED;
DSkPicture.cpp115 bool SkPicture::InternalOnly_BufferIsSKP(SkReadBuffer* buffer, SkPictInfo* pInfo) { in InternalOnly_BufferIsSKP()
135 SkReadBuffer* buffer) { in Forwardport()
179 sk_sp<SkPicture> SkPicture::MakeFromBuffer(SkReadBuffer& buffer) { in MakeFromBuffer()
DSkColorShader.h60 SkColorShader(SkReadBuffer&);
117 SkColor4Shader(SkReadBuffer&);
DSkOrderedReadBuffer.h7 typedef SkReadBuffer SkOrderedReadBuffer;
DSkPicturePlayback.cpp44 DrawType SkPicturePlayback::ReadOpAndSize(SkReadBuffer* reader, uint32_t* size) { in ReadOpAndSize()
61 static const SkRect* get_rect_ptr(SkReadBuffer* reader, SkRect* storage) { in get_rect_ptr()
78 void get_text(SkReadBuffer* reader, TextContainer* text) { in get_text()
85 SkReadBuffer* buffer) { in draw()
89 std::unique_ptr<SkReadBuffer> reader; in draw()
94 reader.reset(new SkReadBuffer(fPictureData->opData()->bytes(), in draw()
124 void SkPicturePlayback::handleOp(SkReadBuffer* reader, in handleOp()
DSkPathEffect.cpp129 sk_sp<SkFlattenable> SkComposePathEffect::CreateProc(SkReadBuffer& buffer) { in CreateProc()
195 sk_sp<SkFlattenable> SkSumPathEffect::CreateProc(SkReadBuffer& buffer) { in CreateProc()
DSkPictureShader.cpp117 sk_sp<SkFlattenable> SkPictureShader::CreateProc(SkReadBuffer& buffer) { in CreateProc()
128 if (buffer.isVersionLT(SkReadBuffer::kPictureShaderHasPictureBool_Version)) { in CreateProc()
138 if (buffer.isVersionLT(SkReadBuffer::kPictureShaderHasPictureBool_Version) || in CreateProc()
/external/skia/include/core/
DSkPicture.h25 class SkReadBuffer; variable
75 static sk_sp<SkPicture> MakeFromBuffer(SkReadBuffer&);
153 static bool InternalOnly_BufferIsSKP(SkReadBuffer*, SkPictInfo*);
226 SkReadBuffer* buffer);
DSkFlattenable.h13 class SkReadBuffer; variable
51 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); \
87 typedef sk_sp<SkFlattenable> (*Factory)(SkReadBuffer&);
DSkTextBlob.h17 class SkReadBuffer; variable
48 static sk_sp<SkTextBlob> MakeFromBuffer(SkReadBuffer&);
50 static const SkTextBlob* CreateFromBuffer(SkReadBuffer& buffer) { in CreateFromBuffer()
DSkLights.h17 class SkReadBuffer; variable
186 static sk_sp<SkLights> MakeFromBuffer(SkReadBuffer& buf);
/external/skia/tests/
DFlattenDrawableTest.cpp34 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer) { in CreateProc()
72 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer) { in CreateProc()
109 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer) { in CreateProc()
162 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer) { in CreateProc()
200 static void register_test_drawables(SkReadBuffer& buffer) { in register_test_drawables()
219 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST()
279 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST()
DFlattenableCustomFactory.cpp45 static sk_sp<SkFlattenable> custom_create_proc(SkReadBuffer& buffer) { in custom_create_proc()
66 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST()
DLayerRasterizerTest.cpp14 class SkReadBuffer;
46 sk_sp<SkFlattenable> DummyRasterizer::CreateProc(SkReadBuffer&) { in CreateProc() argument
/external/skia/src/utils/
DSkBitmapSourceDeserializer.cpp16 sk_sp<SkFlattenable> SkBitmapSourceDeserializer::CreateProc(SkReadBuffer& buffer) { in CreateProc()
18 if (buffer.isVersionLT(SkReadBuffer::kBitmapSourceFilterQuality_Version)) { in CreateProc()
/external/skia/src/effects/
DSkXfermodeImageFilter.cpp60 static sk_sp<SkFlattenable> LegacyArithmeticCreateProc(SkReadBuffer& buffer);
86 static int unflatten_blendmode(SkReadBuffer& buffer, SkArithmeticParams* arith) { in unflatten_blendmode()
87 if (buffer.isVersionLT(SkReadBuffer::kXfermodeToBlendMode_Version)) { in unflatten_blendmode()
104 sk_sp<SkFlattenable> SkXfermodeImageFilter_Base::CreateProc(SkReadBuffer& buffer) { in CreateProc()
339 sk_sp<SkFlattenable> SkXfermodeImageFilter_Base::LegacyArithmeticCreateProc(SkReadBuffer& buffer) { in LegacyArithmeticCreateProc()
DSkPictureImageFilter.cpp56 sk_sp<SkFlattenable> SkPictureImageFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc()
69 if (buffer.isVersionLT(SkReadBuffer::kPictureImageFilterResolution_Version)) { in CreateProc()
78 if (buffer.isVersionLT(SkReadBuffer::kPictureImageFilterLevel_Version)) { in CreateProc()
DSk2DPathEffect.cpp110 sk_sp<SkFlattenable> SkLine2DPathEffect::CreateProc(SkReadBuffer& buffer) { in CreateProc()
138 sk_sp<SkFlattenable> SkPath2DPathEffect::CreateProc(SkReadBuffer& buffer) { in CreateProc()

12345