summaryrefslogtreecommitdiffstats
path: root/cc/resources/resource_pool.h
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2014-10-28 23:09:32 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-29 06:10:06 +0000
commit994573c61efc0ff5f39ac2d0edff55af8dde5ab5 (patch)
treef7ed30ea0a32f346d1fa12d4fadd2fac3aa6f8f1 /cc/resources/resource_pool.h
parentda8c2e8400a6b38a9b1944c893fe8758e6727d5f (diff)
downloadchromium_src-994573c61efc0ff5f39ac2d0edff55af8dde5ab5.zip
chromium_src-994573c61efc0ff5f39ac2d0edff55af8dde5ab5.tar.gz
chromium_src-994573c61efc0ff5f39ac2d0edff55af8dde5ab5.tar.bz2
cc: Throttle raster performed by 1-copy rasterizer.
This implements throttling of raster performed by OneCopyRasterWorkerPool implementation based on number of in-flight copy operations. Raster tasks will block on worker threads until copy operations complete when reaching the limit. Max number of in-flight copy operations are 16 in this initial patch and the delay between checks for completed copy operations is 1 ms. BUG=406404 Review URL: https://codereview.chromium.org/678963002 Cr-Commit-Position: refs/heads/master@{#301793}
Diffstat (limited to 'cc/resources/resource_pool.h')
-rw-r--r--cc/resources/resource_pool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index 5f481e9..102b242 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -44,6 +44,7 @@ class CC_EXPORT ResourcePool {
size_t acquired_resource_count() const {
return resource_count_ - unused_resources_.size();
}
+ size_t busy_resource_count() const { return busy_resources_.size(); }
ResourceFormat resource_format() const { return format_; }