diff options
author | danakj <danakj@chromium.org> | 2014-08-29 17:04:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-30 00:06:16 +0000 |
commit | 8a91b03e231894791a81d45cc6b050890e4f4e9d (patch) | |
tree | 6afb4487004bd3e218834c8147a93a520fb3b49c /content/browser/resources/gpu/info_view.js | |
parent | 08906d2ccfce56f719b060df9f8b9b781c25a44b (diff) | |
download | chromium_src-8a91b03e231894791a81d45cc6b050890e4f4e9d.zip chromium_src-8a91b03e231894791a81d45cc6b050890e4f4e9d.tar.gz chromium_src-8a91b03e231894791a81d45cc6b050890e4f4e9d.tar.bz2 |
Make the number of raster threads appear in chrome://gpu.
This add methods to compositor_util.cc to compute the number of
raster threads to be used in the renderer process. Then this number
is passed to the renderer process explicitly instead of just forwarding
a command line flag blindly.
If the renderer will use more than one thread, chrome://gpu will report
that "Multiple Raster Threads" is enabled, otherwise it shows disabled.
If the --num-raster-threads command line argument is used to force more
than one thread, then it will show Force enabled.
There is no change in behaviour with this patch, it still uses one thread
unless forced otherwise on the command line.
BUG=237669
Review URL: https://codereview.chromium.org/519923002
Cr-Commit-Position: refs/heads/master@{#292726}
Diffstat (limited to 'content/browser/resources/gpu/info_view.js')
-rw-r--r-- | content/browser/resources/gpu/info_view.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/browser/resources/gpu/info_view.js b/content/browser/resources/gpu/info_view.js index 39042ca..e4d1795 100644 --- a/content/browser/resources/gpu/info_view.js +++ b/content/browser/resources/gpu/info_view.js @@ -94,6 +94,7 @@ cr.define('gpu', function() { 'panel_fitting': 'Panel Fitting', 'rasterization': 'Rasterization', 'threaded_rasterization': 'Threaded Rasterization', + 'multiple_raster_threads': 'Multiple Raster Threads', }; var statusMap = { @@ -136,7 +137,11 @@ cr.define('gpu', function() { 'enabled_on': { 'label': 'Enabled', 'class': 'feature-green' - } + }, + 'enabled_force_on': { + 'label': 'Force enabled', + 'class': 'feature-green' + }, }; // GPU info, basic |