/external/skia/include/core/ |
D | SkExecutor.h | 15 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;
|
/external/skia/src/core/ |
D | SkExecutor.cpp | 30 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()
|
D | SkTaskGroup.h | 20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault()); 40 std::unique_ptr<SkExecutor> fThreadPool; 45 SkExecutor& fExecutor;
|
D | SkTaskGroup.cpp | 11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup() 48 fThreadPool = SkExecutor::MakeLIFOThreadPool(threads); in Enabler() 49 SkExecutor::SetDefault(fThreadPool.get()); in Enabler()
|
/external/skqp/src/core/ |
D | SkExecutor.cpp | 31 SkExecutor::~SkExecutor() {} in ~SkExecutor() 34 class SkTrivialExecutor final : public SkExecutor { 41 static SkExecutor* gDefaultExecutor = &gTrivial; 43 SkExecutor& SkExecutor::GetDefault() { in GetDefault() 46 void SkExecutor::SetDefault(SkExecutor* executor) { in SetDefault() 64 class SkThreadPool final : public SkExecutor { 134 std::unique_ptr<SkExecutor> SkExecutor::MakeFIFOThreadPool(int threads) { in MakeFIFOThreadPool() 138 std::unique_ptr<SkExecutor> SkExecutor::MakeLIFOThreadPool(int threads) { in MakeLIFOThreadPool()
|
D | SkTaskGroup.h | 20 explicit SkTaskGroup(SkExecutor& executor = SkExecutor::GetDefault()); 40 std::unique_ptr<SkExecutor> fThreadPool; 45 SkExecutor& fExecutor;
|
D | SkTaskGroup.cpp | 11 SkTaskGroup::SkTaskGroup(SkExecutor& executor) : fPending(0), fExecutor(executor) {} in SkTaskGroup() 48 fThreadPool = SkExecutor::MakeLIFOThreadPool(threads); in Enabler() 49 SkExecutor::SetDefault(fThreadPool.get()); in Enabler()
|
/external/skqp/include/core/ |
D | SkExecutor.h | 14 class SkExecutor { 16 virtual ~SkExecutor(); 19 static std::unique_ptr<SkExecutor> MakeFIFOThreadPool(int threads = 0); 20 static std::unique_ptr<SkExecutor> MakeLIFOThreadPool(int threads = 0); 23 static SkExecutor& GetDefault(); 24 static void SetDefault(SkExecutor*); // Does not take ownership. Not thread safe.
|
/external/skqp/src/pdf/ |
D | SkPDFDocumentPriv.h | 22 class SkExecutor; variable 92 SkExecutor* executor() const { return fExecutor; } in executor() 129 SkExecutor* fExecutor = nullptr;
|
/external/skqp/include/gpu/ |
D | GrContextOptions.h | 19 class SkExecutor; variable 73 SkExecutor* fExecutor = nullptr;
|
/external/skia/src/pdf/ |
D | SkPDFDocumentPriv.h | 22 class SkExecutor; variable 132 SkExecutor* executor() const { return fExecutor; } in executor() 173 SkExecutor* fExecutor = nullptr;
|
/external/skqp/include/docs/ |
D | SkPDFDocument.h | 12 class SkExecutor; variable 161 SkExecutor* fExecutor = nullptr;
|
/external/skia/fuzz/ |
D | FuzzDDLThreading.cpp | 100 std::unique_ptr<SkExecutor> fGpuExecutor = SkExecutor::MakeFIFOThreadPool(1, false); 101 std::unique_ptr<SkExecutor> fRecordingExecutor = 102 SkExecutor::MakeFIFOThreadPool(kRecordingThreadCount, false);
|
/external/skia/tools/flags/ |
D | CommonFlagsGpu.cpp | 91 static std::unique_ptr<SkExecutor> gGpuExecutor = (0 != FLAGS_gpuThreads) in SetCtxOptionsFromCommonFlags() 92 ? SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads) in SetCtxOptionsFromCommonFlags()
|
/external/skia/include/gpu/ |
D | GrContextOptions.h | 20 class SkExecutor; variable 119 SkExecutor* fExecutor = nullptr;
|
/external/skqp/tools/flags/ |
D | SkCommonFlags.cpp | 179 static std::unique_ptr<SkExecutor> gGpuExecutor = (0 != FLAGS_gpuThreads) in SetCtxOptionsFromCommonFlags() 180 ? SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads) : nullptr; in SetCtxOptionsFromCommonFlags()
|
/external/skia/include/docs/ |
D | SkPDFDocument.h | 20 class SkExecutor; variable 206 SkExecutor* fExecutor = nullptr;
|
/external/skia/tests/ |
D | GrContextFactoryTest.cpp | 89 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST()
|
D | PDFDocumentTest.cpp | 251 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in DEF_TEST()
|
D | SkScalerCacheTest.cpp | 57 auto executor = SkExecutor::MakeFIFOThreadPool(kThreadCount); in DEF_TEST()
|
/external/skqp/tests/ |
D | GrContextFactoryTest.cpp | 124 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST()
|
D | PDFDocumentTest.cpp | 251 std::unique_ptr<SkExecutor> executor = SkExecutor::MakeFIFOThreadPool(); in DEF_TEST()
|
/external/skqp/bench/ |
D | PDFBench.cpp | 356 std::unique_ptr<SkExecutor> fExecutor; 360 fExecutor = fFast ? SkExecutor::MakeFIFOThreadPool() : nullptr; in onDelayedSetup()
|
/external/skia/bench/ |
D | PDFBench.cpp | 416 std::unique_ptr<SkExecutor> fExecutor; 420 fExecutor = fFast ? SkExecutor::MakeFIFOThreadPool() : nullptr; in onDelayedSetup()
|
/external/skia/tools/skpbench/ |
D | skpbench.cpp | 281 std::unique_ptr<SkExecutor> gpuThread; in run_ddl_benchmark() 283 std::unique_ptr<SkExecutor> recordingThreadPool; in run_ddl_benchmark() 286 gpuThread = SkExecutor::MakeFIFOThreadPool(1, false); in run_ddl_benchmark() 288 recordingThreadPool = SkExecutor::MakeFIFOThreadPool(FLAGS_ddlNumRecordingThreads, false); in run_ddl_benchmark()
|