From 29b133568d4439e0ab64d26d23eca33ef1b24b2a Mon Sep 17 00:00:00 2001 From: "ernstm@chromium.org" Date: Thu, 4 Jul 2013 01:46:51 +0000 Subject: cc: Update source_frame_number before tiles get created - A recent change to compositor broke the rasterize_and_record_benchmark, because tiles were created before the LayerTreeImpl's source_frame_number was updated. - Switching the order of these operations fixes the problem. BUG=226489 R=enne@chromium.org Review URL: https://chromiumcodereview.appspot.com/18233022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210099 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/trees/layer_tree_host.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cc') diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc index 8d93426..27ece47 100644 --- a/cc/trees/layer_tree_host.cc +++ b/cc/trees/layer_tree_host.cc @@ -288,6 +288,8 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) { sync_tree = host_impl->active_tree(); } + sync_tree->set_source_frame_number(commit_number()); + if (needs_full_tree_sync_) sync_tree->SetRootLayer(TreeSynchronizer::SynchronizeTrees( root_layer(), sync_tree->DetachLayerTree(), sync_tree)); @@ -307,7 +309,6 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) { sync_tree->set_hud_layer(NULL); } - sync_tree->set_source_frame_number(commit_number()); sync_tree->set_background_color(background_color_); sync_tree->set_has_transparent_background(has_transparent_background_); -- cgit v1.1