summaryrefslogtreecommitdiffstats
path: root/cc/cc_tests.gyp
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 08:04:17 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 08:04:17 +0000
commit5128ada4e135b87d1e7b28ef8347bdf477cf8781 (patch)
treee6238483a2d9a95fe255c7a993e37a3766846102 /cc/cc_tests.gyp
parent698953877ea07a2f461d613f912f834194fa6457 (diff)
downloadchromium_src-5128ada4e135b87d1e7b28ef8347bdf477cf8781.zip
chromium_src-5128ada4e135b87d1e7b28ef8347bdf477cf8781.tar.gz
chromium_src-5128ada4e135b87d1e7b28ef8347bdf477cf8781.tar.bz2
cc: Allow copy requests to provide a texture.
When many readbacks will be occuring in a row, we don't want to have texture create/delete calls constantly churning through GPU memory. In particular, this has been a severe performance bottleneck on some intel drivers. Instead provide a way for the copy request client to provide a texture to the compositor that it will use, and then the texture can be reused for as long as the client wishes. In the case of tab capture, the client (in RenderWidgetHostViewAura) wants to use the GLHelper to act on the given texture. Since the GLHelper lives on the main thread, and the compositor draws on the compositor thread, we provide the texture from the client through the main thread CopyOutputRequest API rather than hooking directly into the compositor thread. I moved the async readback unit tests out to their own file as there are now quite a few. Tests: LayerTreeHostCopyRequestTestCreatesTexture LayerTreeHostCopyRequestTestProvideTexture R=piman@chromium.org BUG=312497 Review URL: https://codereview.chromium.org/99253004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc_tests.gyp')
-rw-r--r--cc/cc_tests.gyp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/cc_tests.gyp b/cc/cc_tests.gyp
index a3666ec..9d03b2c 100644
--- a/cc/cc_tests.gyp
+++ b/cc/cc_tests.gyp
@@ -89,9 +89,10 @@
'trees/layer_tree_host_pixeltest_masks.cc',
'trees/layer_tree_host_pixeltest_on_demand_raster.cc',
'trees/layer_tree_host_pixeltest_readback.cc',
- 'trees/layer_tree_host_unittest_animation.cc',
'trees/layer_tree_host_unittest.cc',
+ 'trees/layer_tree_host_unittest_animation.cc',
'trees/layer_tree_host_unittest_context.cc',
+ 'trees/layer_tree_host_unittest_copyrequest.cc',
'trees/layer_tree_host_unittest_damage.cc',
'trees/layer_tree_host_unittest_delegated.cc',
'trees/layer_tree_host_unittest_occlusion.cc',