diff options
author | sohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 16:14:29 +0000 |
---|---|---|
committer | sohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 16:14:29 +0000 |
commit | 1e1d1e1f4dcd5e4c549af271ec70830eed008f4f (patch) | |
tree | 74fd3e9d1d2fbf2b90769ee36eafd3307d78de32 /cc/resources/picture_pile_impl.cc | |
parent | 5264ca43588d5f415a23492105eb698823062b02 (diff) | |
download | chromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.zip chromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.tar.gz chromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.tar.bz2 |
Shared Raster Worker Threads
This CL will share worker pool threads across LTHI for a single process.
Idea is to reduce the number of threads used per process.
For this, we implement WorkerPool::Inner as singleton, and LTHI/WorkerPool
would share the same instance per process.
Reviewer: reveman@chromium.org
BUG=239423
Review URL: https://codereview.chromium.org/73923003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/picture_pile_impl.cc')
-rw-r--r-- | cc/resources/picture_pile_impl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc index e553168..c330f8f 100644 --- a/cc/resources/picture_pile_impl.cc +++ b/cc/resources/picture_pile_impl.cc @@ -9,6 +9,7 @@ #include "cc/base/region.h" #include "cc/debug/debug_colors.h" #include "cc/resources/picture_pile_impl.h" +#include "cc/resources/worker_pool.h" #include "skia/ext/analysis_canvas.h" #include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkSize.h" @@ -50,7 +51,8 @@ PicturePileImpl::PicturePileImpl() PicturePileImpl::PicturePileImpl(const PicturePileBase* other) : PicturePileBase(other), - clones_for_drawing_(ClonesForDrawing(this, num_raster_threads())) { + clones_for_drawing_(ClonesForDrawing( + this, WorkerPool::GetNumRasterThreads())) { } PicturePileImpl::PicturePileImpl( |