/third_party/skia/include/core/ |
H A D | SkExecutor.h | 15 class SK_API SkExecutor { class 17 virtual ~SkExecutor(); 19 // Create a thread pool SkExecutor with a fixed thread count, by default the number of cores. 20 static std::unique_ptr<SkExecutor> MakeFIFOThreadPool(int threads = 0, 22 static std::unique_ptr<SkExecutor> MakeLIFOThreadPool(int threads = 0, 25 // There is always a default SkExecutor available by calling SkExecutor::GetDefault(). 26 static SkExecutor& GetDefault(); 27 static void SetDefault(SkExecutor*); // Does not take ownership. Not thread safe. 36 SkExecutor() [all...] |
/third_party/skia/src/core/ |
H A D | SkExecutor.cpp | 8 #include "include/core/SkExecutor.h" 30 SkExecutor::~SkExecutor() {} in ~SkExecutor() 32 // The default default SkExecutor is an SkTrivialExecutor, which just runs the work right away. 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 [all...] |
H A D | SkTaskGroup.h | 11 #include "include/core/SkExecutor.h" 20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault()); 37 // Creates and owns a thread pool, and passes it to SkExecutor::SetDefault(). 40 std::unique_ptr<SkExecutor> fThreadPool; 45 SkExecutor& fExecutor;
|
H A D | SkTaskGroup.cpp | 8 #include "include/core/SkExecutor.h" 11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup() 38 // This lets SkTaskGroups nest arbitrarily deep on a single SkExecutor: in wait() 48 fThreadPool = SkExecutor::MakeLIFOThreadPool(threads); in Enabler() 49 SkExecutor::SetDefault(fThreadPool.get()); in Enabler()
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkMemoryReclaimer.cpp | 22 SkExecutor& GrVkMemoryReclaimer::getThreadPool() in getThreadPool() 24 static std::unique_ptr<SkExecutor> executor = ({ in getThreadPool() 25 auto executor = SkExecutor::MakeFIFOThreadPool(1, false); in getThreadPool()
|
H A D | GrVkMemoryReclaimer.h | 21 #include "include/core/SkExecutor.h" 43 SkExecutor& getThreadPool();
|
H A D | GrVkAMDMemoryAllocator.cpp | 13 #include "include/core/SkExecutor.h" 22 static SkExecutor& GetThreadPool() { in GetThreadPool() 23 static std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(1, false); in GetThreadPool()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFDocumentPriv.h | 22 class SkExecutor; 132 SkExecutor* executor() const { return fExecutor; } in executor() 173 SkExecutor* fExecutor = nullptr;
|
H A D | SkPDFBitmap.cpp | 12 #include "include/core/SkExecutor.h" 282 if (SkExecutor* executor = doc->executor()) { in SkPDFSerializeImage()
|
H A D | SkPDFTypes.cpp | 11 #include "include/core/SkExecutor.h" 473 if (SkExecutor* executor = doc->executor()) { in SkPDFStreamOut()
|
/third_party/skia/tools/flags/ |
H A D | CommonFlagsGpu.cpp | 8 #include "include/core/SkExecutor.h" 99 static std::unique_ptr<SkExecutor> gGpuExecutor = (0 != FLAGS_gpuThreads) in SetCtxOptions() 100 ? SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads) in SetCtxOptions()
|
/third_party/skia/include/docs/ |
H A D | SkPDFDocument.h | 20 class SkExecutor; 141 threads assist with various tasks, set this to a valid SkExecutor 149 SkExecutor* fExecutor = nullptr;
|
/third_party/skia/include/gpu/ |
H A D | GrContextOptions.h | 20 class SkExecutor; 116 * to a valid SkExecutor instance. Currently, used for software path rendering, but may be used 119 SkExecutor* fExecutor = nullptr;
|
/third_party/skia/fuzz/ |
H A D | FuzzDDLThreading.cpp | 14 #include "include/core/SkExecutor.h" 100 std::unique_ptr<SkExecutor> fGpuExecutor = SkExecutor::MakeFIFOThreadPool(1, false); 101 std::unique_ptr<SkExecutor> fRecordingExecutor = 102 SkExecutor::MakeFIFOThreadPool(kRecordingThreadCount, false);
|
/third_party/skia/tests/ |
H A D | GrContextFactoryTest.cpp | 10 #include "include/core/SkExecutor.h" 89 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST()
|
H A D | SkScalerCacheTest.cpp | 57 auto executor = SkExecutor::MakeFIFOThreadPool(kThreadCount); in DEF_TEST()
|
H A D | PDFDocumentTest.cpp | 11 #include "include/core/SkExecutor.h" 251 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in DEF_TEST()
|
/third_party/skia/tools/skpbench/ |
H A D | skpbench.cpp | 282 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()
|
/third_party/skia/dm/ |
H A D | DMSrcSink.h | 441 std::unique_ptr<SkExecutor> fExecutor; 515 std::unique_ptr<SkExecutor> fRecordingExecutor; 516 std::unique_ptr<SkExecutor> fGPUExecutor;
|
H A D | DMSrcSink.cpp | 16 #include "include/core/SkExecutor.h" 1605 , fExecutor(SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads)) { in GPUThreadTestingSink() 1795 , fRecordingExecutor(SkExecutor::MakeLIFOThreadPool(1)) in GPUDDLSink() 1796 , fGPUExecutor(SkExecutor::MakeFIFOThreadPool(1, false)) { in GPUDDLSink() 2000 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in draw()
|
/third_party/skia/tools/skqp/ |
H A D | jitter_gms.cpp | 14 #include "include/core/SkExecutor.h" 121 auto executor = SkExecutor::MakeFIFOThreadPool(); in main()
|
/third_party/skia/bench/ |
H A D | PDFBench.cpp | 12 #include "include/core/SkExecutor.h" 315 #include "include/core/SkExecutor.h" 416 std::unique_ptr<SkExecutor> fExecutor; 420 fExecutor = fFast ? SkExecutor::MakeFIFOThreadPool() : nullptr;
|
/third_party/skia/modules/skplaintexteditor/src/ |
H A D | editor.cpp | 7 #include "include/core/SkExecutor.h" 468 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(100); in reshapeAll()
|