From 9d075e8097f475380f58501de057dadc6db72e1d Mon Sep 17 00:00:00 2001 From: "boliu@chromium.org" Date: Mon, 14 Jul 2014 20:31:49 +0000 Subject: Merge 280970 "Add switch to disable recording whole document" > Add switch to disable recording whole document > > Add an android webview switch to disable the workaround to record the > whole document on in each commit. The setting is plumbed through > SynchronousCompositorFactory. > > BUG=390702 > > Review URL: https://codereview.chromium.org/361073002 TBR=boliu@chromium.org Review URL: https://codereview.chromium.org/389973005 git-svn-id: svn://svn.chromium.org/chrome/branches/2062/src@283008 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/layers/picture_layer.cc | 2 +- cc/trees/layer_tree_settings.cc | 3 ++- cc/trees/layer_tree_settings.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cc') diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc index 61dce74..5d54574 100644 --- a/cc/layers/picture_layer.cc +++ b/cc/layers/picture_layer.cc @@ -116,7 +116,7 @@ bool PictureLayer::Update(ResourceUpdateQueue* queue, pending_invalidation_.Swap(&pile_invalidation_); pending_invalidation_.Clear(); - if (layer_tree_host()->settings().using_synchronous_renderer_compositor) { + if (layer_tree_host()->settings().record_full_layer) { // Workaround for http://crbug.com/235910 - to retain backwards compat // the full page content must always be provided in the picture layer. visible_layer_rect = gfx::Rect(bounds()); diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc index 629b4e2..1465325 100644 --- a/cc/trees/layer_tree_settings.cc +++ b/cc/trees/layer_tree_settings.cc @@ -63,7 +63,8 @@ LayerTreeSettings::LayerTreeSettings() ignore_root_layer_flings(false), use_rgba_4444_textures(false), touch_hit_testing(true), - texture_id_allocation_chunk_size(64) { + texture_id_allocation_chunk_size(64), + record_full_layer(false) { } LayerTreeSettings::~LayerTreeSettings() {} diff --git a/cc/trees/layer_tree_settings.h b/cc/trees/layer_tree_settings.h index 8192b3d..ba39e3c 100644 --- a/cc/trees/layer_tree_settings.h +++ b/cc/trees/layer_tree_settings.h @@ -79,6 +79,7 @@ class CC_EXPORT LayerTreeSettings { bool use_rgba_4444_textures; bool touch_hit_testing; size_t texture_id_allocation_chunk_size; + bool record_full_layer; LayerTreeDebugState initial_debug_state; }; -- cgit v1.1