Home
last modified time | relevance | path

Searched refs:procs (Results 1 – 25 of 157) sorted by relevance

1234567

/third_party/flutter/skia/src/core/
DSkPicture.cpp135 sk_sp<SkPicture> SkPicture::MakeFromStream(SkStream* stream, const SkDeserialProcs* procs) { in MakeFromStream() argument
136 return MakeFromStream(stream, procs, nullptr); in MakeFromStream()
140 const SkDeserialProcs* procs) { in MakeFromData() argument
145 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
148 sk_sp<SkPicture> SkPicture::MakeFromData(const SkData* data, const SkDeserialProcs* procs) { in MakeFromData() argument
153 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
163 SkDeserialProcs procs; in MakeFromStream() local
165 procs = *procsPtr; in MakeFromStream()
173 SkPictureData::CreateFromStream(stream, info, procs, typefaces)); in MakeFromStream()
178 if (!stream->readS32(&ssize) || ssize >= 0 || !procs.fPictureProc) { in MakeFromStream()
[all …]
DSkFlattenable.cpp116 sk_sp<SkData> SkFlattenable::serialize(const SkSerialProcs* procs) const { in serialize()
118 if (procs) { in serialize()
119 writer.setSerialProcs(*procs); in serialize()
129 const SkSerialProcs* procs) const { in serialize()
131 if (procs) { in serialize()
132 writer.setSerialProcs(*procs); in serialize()
139 size_t size, const SkDeserialProcs* procs) { in Deserialize() argument
141 if (procs) { in Deserialize()
142 buffer.setDeserialProcs(*procs); in Deserialize()
DSkPictureData.cpp125 const SkSerialProcs& procs) { in WriteTypefaces() argument
136 if (procs.fTypefaceProc) { in WriteTypefaces()
137 auto data = procs.fTypefaceProc(tf, procs.fTypefaceCtx); in WriteTypefaces()
196 static SkSerialProcs skip_typeface_proc(const SkSerialProcs& procs) { in skip_typeface_proc() argument
197 SkSerialProcs newProcs = procs; in skip_typeface_proc()
208 void SkPictureData::serialize(SkWStream* stream, const SkSerialProcs& procs, in serialize() argument
223 buffer.setSerialProcs(skip_typeface_proc(procs)); in serialize()
246 WriteTypefaces(stream, *typefaceSet, procs); in serialize()
256 pic->serialize(stream, &procs, typefaceSet, /*textBlobsOnly=*/ false); in serialize()
291 const SkDeserialProcs& procs, in parseStreamTag() argument
[all …]
/third_party/skia/src/core/
DSkPicture.cpp138 sk_sp<SkPicture> SkPicture::MakeFromStream(SkStream* stream, const SkDeserialProcs* procs) { in MakeFromStream() argument
139 return MakeFromStream(stream, procs, nullptr); in MakeFromStream()
143 const SkDeserialProcs* procs) { in MakeFromData() argument
148 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
151 sk_sp<SkPicture> SkPicture::MakeFromData(const SkData* data, const SkDeserialProcs* procs) { in MakeFromData() argument
156 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
166 SkDeserialProcs procs; in MakeFromStream() local
168 procs = *procsPtr; in MakeFromStream()
176 SkPictureData::CreateFromStream(stream, info, procs, typefaces)); in MakeFromStream()
181 if (!stream->readS32(&ssize) || ssize >= 0 || !procs.fPictureProc) { in MakeFromStream()
[all …]
DSkFlattenable.cpp116 sk_sp<SkData> SkFlattenable::serialize(const SkSerialProcs* procs) const { in serialize()
118 if (procs) { in serialize()
119 writer.setSerialProcs(*procs); in serialize()
129 const SkSerialProcs* procs) const { in serialize()
131 if (procs) { in serialize()
132 writer.setSerialProcs(*procs); in serialize()
139 size_t size, const SkDeserialProcs* procs) { in Deserialize() argument
141 if (procs) { in Deserialize()
142 buffer.setDeserialProcs(*procs); in Deserialize()
DSkPictureData.cpp121 const SkSerialProcs& procs) { in WriteTypefaces() argument
132 if (procs.fTypefaceProc) { in WriteTypefaces()
133 auto data = procs.fTypefaceProc(tf, procs.fTypefaceCtx); in WriteTypefaces()
192 static SkSerialProcs skip_typeface_proc(const SkSerialProcs& procs) { in skip_typeface_proc() argument
193 SkSerialProcs newProcs = procs; in skip_typeface_proc()
204 void SkPictureData::serialize(SkWStream* stream, const SkSerialProcs& procs, in serialize() argument
219 buffer.setSerialProcs(skip_typeface_proc(procs)); in serialize()
242 WriteTypefaces(stream, *typefaceSet, procs); in serialize()
252 pic->serialize(stream, &procs, typefaceSet, /*textBlobsOnly=*/ false); in serialize()
287 const SkDeserialProcs& procs, in parseStreamTag() argument
[all …]
/third_party/flutter/skia/tests/
DSerialProcsTest.cpp92 SkSerialProcs procs; in makes() local
93 procs.fPictureProc = proc; in makes()
94 procs.fPictureCtx = ctx; in makes()
95 return procs; in makes()
99 SkDeserialProcs procs; in maked() local
100 procs.fPictureProc = proc; in maked()
101 procs.fPictureCtx = const_cast<void*>(ctx); in maked()
102 return procs; in maked()
202 SkSerialProcs procs; in DEF_TEST() local
203 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx) -> sk_sp<SkData> { in DEF_TEST()
[all …]
/third_party/skia/tests/
DSerialProcsTest.cpp92 SkSerialProcs procs; in makes() local
93 procs.fPictureProc = proc; in makes()
94 procs.fPictureCtx = ctx; in makes()
95 return procs; in makes()
99 SkDeserialProcs procs; in maked() local
100 procs.fPictureProc = proc; in maked()
101 procs.fPictureCtx = const_cast<void*>(ctx); in maked()
102 return procs; in maked()
202 SkSerialProcs procs; in DEF_TEST() local
203 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx) -> sk_sp<SkData> { in DEF_TEST()
[all …]
/third_party/flutter/skia/gm/
Dblurrect.cpp136 constexpr Proc procs[] = { in onDraw() local
142 this->drawProcs(canvas, r, paint, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
144 this->drawProcs(canvas, r, paintWithRadial, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
146 this->drawProcs(canvas, r, paint, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
148 this->drawProcs(canvas, r, paintWithRadial, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
151 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); in onDraw()
159 bool doClip, const Proc procs[], size_t procsCount) { in drawProcs() argument
168 procs[i](canvas, r, paint); in drawProcs()
/third_party/flutter/skia/third_party/externals/dawn/src/fuzzers/
DDawnWireServerAndFrontendFuzzer.cpp49 DawnProcTable procs = dawn_native::GetProcs(); in LLVMFuzzerTestOneInput() local
55 originalDeviceCreateSwapChain = procs.deviceCreateSwapChain; in LLVMFuzzerTestOneInput()
56 procs.deviceCreateSwapChain = ErrorDeviceCreateSwapChain; in LLVMFuzzerTestOneInput()
58 dawnSetProcs(&procs); in LLVMFuzzerTestOneInput()
78 serverDesc.procs = &procs; in LLVMFuzzerTestOneInput()
/third_party/skia/third_party/externals/dawn/src/fuzzers/
DDawnWireServerFuzzer.cpp100 DawnProcTable procs = dawn_native::GetProcs(); in Run() local
106 sOriginalDeviceCreateSwapChain = procs.deviceCreateSwapChain; in Run()
107 procs.deviceCreateSwapChain = ErrorDeviceCreateSwapChain; in Run()
109 dawnProcSetProcs(&procs); in Run()
120 serverDesc.procs = &procs; in Run()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DPerThreadProcTests.cpp66 DawnProcTable procs = dawn_native::GetProcs(); in TEST_F() local
67 procs.deviceCreateBuffer = [](WGPUDevice device, in TEST_F()
73 dawnProcSetPerThreadProcs(&procs); in TEST_F()
87 DawnProcTable procs = dawn_native::GetProcs(); in TEST_F() local
88 procs.deviceCreateBuffer = [](WGPUDevice device, in TEST_F()
94 dawnProcSetPerThreadProcs(&procs); in TEST_F()
/third_party/skia/third_party/externals/dawn/generator/templates/
Ddawn_proc.c19 static {{Prefix}}ProcTable procs; variable
25 procs = *procs_;
27 procs = nullProcs;
38 procs.{{as_varName(function.name)}}(
55 procs.{{as_varName(type.name, method.name)}}({{as_varName(type.name)}}
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/
Dapi.c17 static DawnProcTable procs; variable
23 procs = *procs_; in dawnSetProcs()
25 procs = nullProcs; in dawnSetProcs()
38 procs.{{as_varName(type.name, method.name)}}({{as_varName(type.name)}}
/third_party/flutter/skia/src/utils/
DSkMultiPictureDocument.cpp56 MultiPictureDocument(SkWStream* s, const SkSerialProcs* procs) in MultiPictureDocument()
58 , fProcs(procs ? *procs : SkSerialProcs()) in MultiPictureDocument()
99 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs) { in SkMakeMultiPictureDocument() argument
100 return sk_make_sp<MultiPictureDocument>(wStream, procs); in SkMakeMultiPictureDocument()
182 const SkDeserialProcs* procs) { in SkMultiPictureDocumentRead() argument
192 auto picture = SkPicture::MakeFromStream(stream, procs); in SkMultiPictureDocumentRead()
/third_party/flutter/skia/include/core/
DSkPicture.h55 const SkDeserialProcs* procs = nullptr);
71 const SkDeserialProcs* procs = nullptr);
81 const SkDeserialProcs* procs = nullptr);
157 sk_sp<SkData> serialize(const SkSerialProcs* procs = nullptr) const;
169 void serialize(SkWStream* stream, const SkSerialProcs* procs = nullptr) const;
/third_party/skia/tools/
Dremote_demo.cpp151 SkDeserialProcs procs; in final_draw() local
155 procs.fTypefaceProc = decode; in final_draw()
156 procs.fTypefaceCtx = client; in final_draw()
158 auto pic = SkPicture::MakeFromData(picData, &procs); in final_draw()
165 auto picUnderTest = SkPicture::MakeFromData(picData, &procs); in final_draw()
240 SkSerialProcs procs; in renderer() local
244 procs.fTypefaceProc = encode; in renderer()
245 procs.fTypefaceCtx = &server; in renderer()
247 stream = pic->serialize(&procs); in renderer()
/third_party/flutter/skia/tools/
Dremote_demo.cpp151 SkDeserialProcs procs; in final_draw() local
155 procs.fTypefaceProc = decode; in final_draw()
156 procs.fTypefaceCtx = client; in final_draw()
158 auto pic = SkPicture::MakeFromData(picData, &procs); in final_draw()
165 auto picUnderTest = SkPicture::MakeFromData(picData, &procs); in final_draw()
240 SkSerialProcs procs; in renderer() local
244 procs.fTypefaceProc = encode; in renderer()
245 procs.fTypefaceCtx = &server; in renderer()
247 stream = pic->serialize(&procs); in renderer()
/third_party/flutter/skia/site/user/api/
DSkPicture_Reference.md13 … const <a href='undocumented#SkDeserialProcs'>SkDeserialProcs</a>* procs = nullptr);
15 … const <a href='undocumented#SkDeserialProcs'>SkDeserialProcs</a>* procs = nullptr);
17 … const <a href='undocumented#SkDeserialProcs'>SkDeserialProcs</a>* procs = nullptr);
21 …serialize</a>(const <a href='undocumented#SkSerialProcs'>SkSerialProcs</a>* procs = nullptr) const;
22 …'>stream</a>, const <a href='undocumented#SkSerialProcs'>SkSerialProcs</a>* procs = nullptr) const;
129 …eam'>stream</a>, const <a href='undocumented#SkDeserialProcs'>SkDeserialProcs</a>* procs = nullptr)
136 <a href='#SkPicture_MakeFromStream_procs'>procs</a>-><a href='#SkDeserialProcs_fPictureProc'>fPictu…
137procs</a>-><a href='#SkDeserialProcs_fPictureProc'>fPictureProc</a> is nullptr, default decoding i…
138 …FromStream_procs'>procs</a>-><a href='#SkDeserialProcs_fPictureProc'>fPictureProc</a>; <a href='#S…
146 <tr> <td><a name='SkPicture_MakeFromStream_procs'><code><strong>procs</strong></code></a></td>
[all …]
/third_party/skia/src/utils/
DSkMultiPictureDocument.cpp58 MultiPictureDocument(SkWStream* s, const SkSerialProcs* procs, in MultiPictureDocument()
61 , fProcs(procs ? *procs : SkSerialProcs()) in MultiPictureDocument()
107 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs, in SkMakeMultiPictureDocument() argument
109 return sk_make_sp<MultiPictureDocument>(wStream, procs, onEndPage); in SkMakeMultiPictureDocument()
191 const SkDeserialProcs* procs) { in SkMultiPictureDocumentRead() argument
201 auto picture = SkPicture::MakeFromStream(stream, procs); in SkMultiPictureDocumentRead()
/third_party/skia/include/core/
DSkPicture.h57 const SkDeserialProcs* procs = nullptr);
73 const SkDeserialProcs* procs = nullptr);
83 const SkDeserialProcs* procs = nullptr);
165 sk_sp<SkData> serialize(const SkSerialProcs* procs = nullptr) const;
179 void serialize(SkWStream* stream, const SkSerialProcs* procs = nullptr) const;
/third_party/skia/third_party/externals/dawn/generator/templates/opengl/
DOpenGLFunctionsBase.cpp32 {% for proc in block.procs %} in LoadOpenGLESProcs()
41 {% for proc in block.procs %} in LoadOpenGLESProcs()
53 {% for proc in block.procs %}
62 {% for proc in block.procs %}
/third_party/flutter/skia/src/ports/
DSkImageEncoder_CG.cpp42 CGDataConsumerCallbacks procs; in SkStreamToCGDataConsumer() local
43 procs.putBytes = consumer_put; in SkStreamToCGDataConsumer()
44 procs.releaseConsumer = consumer_release; in SkStreamToCGDataConsumer()
47 return SkUniqueCFRef<CGDataConsumerRef>(CGDataConsumerCreate(stream, &procs)); in SkStreamToCGDataConsumer()
/third_party/skia/src/ports/
DSkImageEncoder_CG.cpp42 CGDataConsumerCallbacks procs; in SkStreamToCGDataConsumer() local
43 procs.putBytes = consumer_put; in SkStreamToCGDataConsumer()
44 procs.releaseConsumer = consumer_release; in SkStreamToCGDataConsumer()
47 return SkUniqueCFRef<CGDataConsumerRef>(CGDataConsumerCreate(stream, &procs)); in SkStreamToCGDataConsumer()
/third_party/ffmpeg/libavdevice/
Dopengl_enc.c411 FFOpenGLFunctions *procs = &opengl->glprocs; in opengl_sdl_load_procedures() local
414 procs->name = (type)SDL_GL_GetProcAddress(#name); \ in opengl_sdl_load_procedures()
415 if (!procs->name) { \ in opengl_sdl_load_procedures()
455 FFOpenGLFunctions *procs = &opengl->glprocs; in opengl_load_procedures() local
462 procs->glActiveTexture = glActiveTexture; in opengl_load_procedures()
463 procs->glGenBuffers = glGenBuffers; in opengl_load_procedures()
464 procs->glDeleteBuffers = glDeleteBuffers; in opengl_load_procedures()
465 procs->glBufferData = glBufferData; in opengl_load_procedures()
466 procs->glBindBuffer = glBindBuffer; in opengl_load_procedures()
467 procs->glGetAttribLocation = glGetAttribLocation; in opengl_load_procedures()
[all …]

1234567