From 022cfa258df280d914cfff4dc1466a3fa909ce9c Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Fri, 1 Sep 2017 11:53:16 -0400 Subject: Add FIFO thread pool, use it for most things. We like a LIFO default thread pool in tools like DM for better memory/time locality... the bots use less memory this way, and generally run faster. But most use cases want a FIFO queue, so that they can get going on the next parts of early work while later work is still running. This splits the implementation into one using SkTArray and pop_back for LIFO, and a new one using std::deque and pop_front for FIFO. Change-Id: Ief203b6869a00f1f8084019431a781d15fc63750 Reviewed-on: https://skia-review.googlesource.com/41849 Commit-Queue: Mike Klein Commit-Queue: Brian Osman Reviewed-by: Yuqian Li Reviewed-by: Brian Osman --- tests/GrContextFactoryTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/GrContextFactoryTest.cpp') diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index a6291cf42d..1514d67717 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -147,7 +147,7 @@ DEF_GPUTEST(GrContextFactory_executorAndTaskGroup, reporter, /*factory*/) { contextOptions.fExecutor = nullptr; GrContextFactory serialFactory(contextOptions); - std::unique_ptr threadPool = SkExecutor::MakeThreadPool(1); + std::unique_ptr threadPool = SkExecutor::MakeFIFOThreadPool(1); contextOptions.fExecutor = threadPool.get(); GrContextFactory threadedFactory(contextOptions); -- cgit v1.2.3