Home
last modified time | relevance | path

Searched refs:SkTaskGroup (Results 1 – 25 of 31) sorted by relevance

12

/third_party/skia/src/core/
DSkTaskGroup.cpp11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup() function in SkTaskGroup
13 void SkTaskGroup::add(std::function<void(void)> fn) { in add()
21 void SkTaskGroup::batch(int N, std::function<void(int)> fn) { in batch()
32 bool SkTaskGroup::done() const { in done()
36 void SkTaskGroup::wait() { in wait()
46 SkTaskGroup::Enabler::Enabler(int threads) { in Enabler()
DSkTaskGroup.h17 class SkTaskGroup : SkNoncopyable {
20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault());
21 ~SkTaskGroup() { this->wait(); } in ~SkTaskGroup()
DBUILD.bazel355 "SkTaskGroup.cpp",
356 "SkTaskGroup.h",
/third_party/skia/tools/
DDDLTileHelper.h25 class SkTaskGroup; variable
107 void kickOffThreadedWork(SkTaskGroup* recordingTaskGroup,
108 SkTaskGroup* gpuTaskGroup,
134 void createBackendTextures(SkTaskGroup*, GrDirectContext*);
135 void deleteBackendTextures(SkTaskGroup*, GrDirectContext*);
DDDLTileHelper.cpp263 SkTaskGroup().batch(this->numTiles(), [&](int i) { in createDDLsInParallel()
266 SkTaskGroup().add([this]{ this->createComposeDDL(); }); in createDDLsInParallel()
267 SkTaskGroup().wait(); in createDDLsInParallel()
292 void DDLTileHelper::kickOffThreadedWork(SkTaskGroup* recordingTaskGroup, in kickOffThreadedWork()
293 SkTaskGroup* gpuTaskGroup, in kickOffThreadedWork()
349 void DDLTileHelper::createBackendTextures(SkTaskGroup* taskGroup, GrDirectContext* direct) { in createBackendTextures()
367 void DDLTileHelper::deleteBackendTextures(SkTaskGroup* taskGroup, GrDirectContext* direct) { in deleteBackendTextures()
DDDLPromiseImageHelper.h25 class SkTaskGroup; variable
117 void uploadAllToGPU(SkTaskGroup*, GrDirectContext*);
118 void deleteAllFromGPU(SkTaskGroup*, GrDirectContext*);
DDDLPromiseImageHelper.cpp260 void DDLPromiseImageHelper::uploadAllToGPU(SkTaskGroup* taskGroup, GrDirectContext* direct) { in uploadAllToGPU()
274 void DDLPromiseImageHelper::deleteAllFromGPU(SkTaskGroup* taskGroup, GrDirectContext* direct) { in deleteAllFromGPU()
/third_party/skia/src/gpu/
DGrDirectContextPriv.h28 class SkTaskGroup; variable
78 SkTaskGroup* getTaskGroup() { return this->context()->fTaskGroup.get(); } in getTaskGroup()
/third_party/skia/tools/skpbench/
Dskpbench.cpp212 Sample* sample, SkTaskGroup* recordingTaskGroup, SkTaskGroup* gpuTaskGroup, in ddl_sample()
283 std::unique_ptr<SkTaskGroup> gpuTaskGroup; in run_ddl_benchmark()
285 std::unique_ptr<SkTaskGroup> recordingTaskGroup; in run_ddl_benchmark()
288 gpuTaskGroup = std::make_unique<SkTaskGroup>(*gpuThread); in run_ddl_benchmark()
290 recordingTaskGroup = std::make_unique<SkTaskGroup>(*recordingThreadPool); in run_ddl_benchmark()
/third_party/skia/tests/
DPathOpsThreadedCommon.cpp19 SkTaskGroup().batch(fRunnables.count(), [&](int i) { in render()
Dskia_test.cpp237 SkTaskGroup::Enabler enabled(FLAGS_threads); in main()
238 SkTaskGroup cpuTests; in main()
DOnceTest.cpp35 SkTaskGroup().batch(1021, [&](int) { in DEF_TEST()
DSkSharedMutexTest.cpp31 SkTaskGroup().batch(8, [&](int threadIndex) { in DEF_TEST()
DSkScalerCacheTest.cpp80 SkTaskGroup(*executor).batch(kThreadCount, perThread); in DEF_TEST()
/third_party/skia/fuzz/
DFuzzDDLThreading.cpp103 SkTaskGroup fGpuTaskGroup{*fGpuExecutor};
104 SkTaskGroup fRecordingTaskGroup{*fRecordingExecutor};
/third_party/skia/modules/skottie/src/
DSkottieTool.cpp330 SkTaskGroup::Enabler enabler(FLAGS_threads - 1); in main()
332 SkTaskGroup tg; in main()
/third_party/skia/include/gpu/
DGrDirectContext.h46 class SkTaskGroup; variable
910 std::unique_ptr<SkTaskGroup> fTaskGroup;
/third_party/skia/dm/
DDM.cpp1103 static SkTaskGroup* gDefinitelyThreadSafeWork = new SkTaskGroup;
1513 SkTaskGroup::Enabler enabled(FLAGS_threads); in main()
1543 SkTaskGroup parallel; in main()
DDMSrcSink.h510 SkTaskGroup* recordingTaskGroup,
511 SkTaskGroup* gpuTaskGroup,
DDMSrcSink.cpp1801 SkTaskGroup* recordingTaskGroup, in ddlDraw()
1802 SkTaskGroup* gpuTaskGroup, in ddlDraw()
1928 SkTaskGroup recordingTaskGroup(*fRecordingExecutor); in draw()
1929 SkTaskGroup gpuTaskGroup(*fGPUExecutor); in draw()
/third_party/skia/tools/fm/
Dfm.cpp385 SkTaskGroup::Enabler enabled(FLAGS_race); in main()
573 SkTaskGroup{}.batch(replicas, [=](int replica) { in main()
/third_party/skia/src/gpu/vk/
DGrVkResourceProvider.cpp473 SkTaskGroup* taskGroup = fGpu->getContext()->priv().getTaskGroup(); in destroyResources()
549 SkTaskGroup* taskGroup = fGpu->getContext()->priv().getTaskGroup(); in backgroundReset()
/third_party/skia/bench/
DSkGlyphCacheBench.cpp98 SkTaskGroup().batch(16, [&](int threadIndex) { in onDraw()
/third_party/skia/src/gpu/ops/
DSoftwarePathRenderer.cpp335 SkTaskGroup* taskGroup = nullptr; in onDrawPath()
/third_party/skia/gn/
Dcore.gni390 "$_src/core/SkTaskGroup.cpp",
391 "$_src/core/SkTaskGroup.h",

12