Home
last modified time | relevance | path

Searched refs:SkExecutor (Results 1 – 25 of 46) sorted by relevance

12

/third_party/skia/include/core/
DSkExecutor.h15 class SK_API SkExecutor {
17 virtual ~SkExecutor();
20 static std::unique_ptr<SkExecutor> MakeFIFOThreadPool(int threads = 0,
22 static std::unique_ptr<SkExecutor> MakeLIFOThreadPool(int threads = 0,
26 static SkExecutor& GetDefault();
27 static void SetDefault(SkExecutor*); // Does not take ownership. Not thread safe.
36 SkExecutor() = default;
37 SkExecutor(const SkExecutor&) = delete;
38 SkExecutor& operator=(const SkExecutor&) = delete;
/third_party/skia/src/core/
DSkExecutor.cpp30 SkExecutor::~SkExecutor() {} in ~SkExecutor()
33 class SkTrivialExecutor final : public SkExecutor {
39 static SkExecutor& trivial_executor() { in trivial_executor()
44 static SkExecutor* gDefaultExecutor = nullptr;
46 SkExecutor& SkExecutor::GetDefault() { in GetDefault()
53 void SkExecutor::SetDefault(SkExecutor* executor) { in SetDefault()
71 class SkThreadPool final : public SkExecutor {
142 std::unique_ptr<SkExecutor> SkExecutor::MakeFIFOThreadPool(int threads, bool allowBorrowing) { in MakeFIFOThreadPool()
147 std::unique_ptr<SkExecutor> SkExecutor::MakeLIFOThreadPool(int threads, bool allowBorrowing) { in MakeLIFOThreadPool()
DSkTaskGroup.h20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault());
40 std::unique_ptr<SkExecutor> fThreadPool;
45 SkExecutor& fExecutor;
DSkTaskGroup.cpp11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup()
48 fThreadPool = SkExecutor::MakeLIFOThreadPool(threads); in Enabler()
49 SkExecutor::SetDefault(fThreadPool.get()); in Enabler()
/third_party/flutter/skia/src/core/
DSkExecutor.cpp31 SkExecutor::~SkExecutor() {} in ~SkExecutor()
34 class SkTrivialExecutor final : public SkExecutor {
40 static SkExecutor* gDefaultExecutor = nullptr;
46 SkExecutor& SkExecutor::GetDefault() { in GetDefault()
52 void SkExecutor::SetDefault(SkExecutor* executor) { in SetDefault()
74 class SkThreadPool final : public SkExecutor {
144 std::unique_ptr<SkExecutor> SkExecutor::MakeFIFOThreadPool(int threads) { in MakeFIFOThreadPool()
148 std::unique_ptr<SkExecutor> SkExecutor::MakeLIFOThreadPool(int threads) { in MakeLIFOThreadPool()
DSkTaskGroup.h20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault());
40 std::unique_ptr<SkExecutor> fThreadPool;
45 SkExecutor& fExecutor;
DSkTaskGroup.cpp11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup()
48 fThreadPool = SkExecutor::MakeLIFOThreadPool(threads); in Enabler()
49 SkExecutor::SetDefault(fThreadPool.get()); in Enabler()
/third_party/flutter/skia/include/core/
DSkExecutor.h15 class SK_API SkExecutor {
17 virtual ~SkExecutor();
20 static std::unique_ptr<SkExecutor> MakeFIFOThreadPool(int threads = 0);
21 static std::unique_ptr<SkExecutor> MakeLIFOThreadPool(int threads = 0);
24 static SkExecutor& GetDefault();
25 static void SetDefault(SkExecutor*); // Does not take ownership. Not thread safe.
/third_party/flutter/skia/src/pdf/
DSkPDFDocumentPriv.h22 class SkExecutor; variable
103 SkExecutor* executor() const { return fExecutor; } in executor()
146 SkExecutor* fExecutor = nullptr;
/third_party/skia/fuzz/
DFuzzDDLThreading.cpp100 std::unique_ptr<SkExecutor> fGpuExecutor = SkExecutor::MakeFIFOThreadPool(1, false);
101 std::unique_ptr<SkExecutor> fRecordingExecutor =
102 SkExecutor::MakeFIFOThreadPool(kRecordingThreadCount, false);
/third_party/skia/src/pdf/
DSkPDFDocumentPriv.h22 class SkExecutor; variable
132 SkExecutor* executor() const { return fExecutor; } in executor()
173 SkExecutor* fExecutor = nullptr;
/third_party/flutter/skia/include/gpu/
DGrContextOptions.h19 class SkExecutor; variable
84 SkExecutor* fExecutor = nullptr;
/third_party/flutter/skia/include/docs/
DSkPDFDocument.h12 class SkExecutor; variable
161 SkExecutor* fExecutor = nullptr;
/third_party/flutter/skia/tools/flags/
DCommonFlagsGpu.cpp81 static std::unique_ptr<SkExecutor> gGpuExecutor = (0 != FLAGS_gpuThreads) in SetCtxOptionsFromCommonFlags()
82 ? SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads) in SetCtxOptionsFromCommonFlags()
/third_party/skia/include/docs/
DSkPDFDocument.h20 class SkExecutor; variable
149 SkExecutor* fExecutor = nullptr;
/third_party/skia/include/gpu/
DGrContextOptions.h20 class SkExecutor; variable
119 SkExecutor* fExecutor = nullptr;
/third_party/skia/tools/flags/
DCommonFlagsGpu.cpp99 static std::unique_ptr<SkExecutor> gGpuExecutor = (0 != FLAGS_gpuThreads) in SetCtxOptions()
100 ? SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads) in SetCtxOptions()
/third_party/skia/tests/
DGrContextFactoryTest.cpp89 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST()
DPDFDocumentTest.cpp251 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in DEF_TEST()
DSkScalerCacheTest.cpp57 auto executor = SkExecutor::MakeFIFOThreadPool(kThreadCount); in DEF_TEST()
/third_party/flutter/skia/tests/
DGrContextFactoryTest.cpp88 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST()
DPDFDocumentTest.cpp252 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in DEF_TEST()
/third_party/flutter/engine/flutter/runtime/
Dskia_concurrent_executor.h14 class SkiaConcurrentExecutor : public SkExecutor {
Ddart_vm.cc269 SkExecutor::SetDefault(&skia_concurrent_executor_);
444 SkExecutor::SetDefault(nullptr); in ~DartVM()
/third_party/skia/tools/skpbench/
Dskpbench.cpp282 std::unique_ptr<SkExecutor> gpuThread; in run_ddl_benchmark()
284 std::unique_ptr<SkExecutor> recordingThreadPool; in run_ddl_benchmark()
287 gpuThread = SkExecutor::MakeFIFOThreadPool(1, false); in run_ddl_benchmark()
289 recordingThreadPool = SkExecutor::MakeFIFOThreadPool(FLAGS_ddlNumRecordingThreads, false); in run_ddl_benchmark()

12