Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 387613002: cc: Add some missing braces for style correctness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: braces: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 LayerTreeImpl* sync_tree = host_impl->sync_tree(); 282 LayerTreeImpl* sync_tree = host_impl->sync_tree();
283 283
284 if (next_commit_forces_redraw_) { 284 if (next_commit_forces_redraw_) {
285 sync_tree->ForceRedrawNextActivation(); 285 sync_tree->ForceRedrawNextActivation();
286 next_commit_forces_redraw_ = false; 286 next_commit_forces_redraw_ = false;
287 } 287 }
288 288
289 sync_tree->set_source_frame_number(source_frame_number()); 289 sync_tree->set_source_frame_number(source_frame_number());
290 290
291 if (needs_full_tree_sync_) 291 if (needs_full_tree_sync_) {
292 sync_tree->SetRootLayer(TreeSynchronizer::SynchronizeTrees( 292 sync_tree->SetRootLayer(TreeSynchronizer::SynchronizeTrees(
293 root_layer(), sync_tree->DetachLayerTree(), sync_tree)); 293 root_layer(), sync_tree->DetachLayerTree(), sync_tree));
294 }
295
294 { 296 {
295 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties"); 297 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties");
296 TreeSynchronizer::PushProperties(root_layer(), sync_tree->root_layer()); 298 TreeSynchronizer::PushProperties(root_layer(), sync_tree->root_layer());
297 } 299 }
298 300
299 sync_tree->set_needs_full_tree_sync(needs_full_tree_sync_); 301 sync_tree->set_needs_full_tree_sync(needs_full_tree_sync_);
300 needs_full_tree_sync_ = false; 302 needs_full_tree_sync_ = false;
301 303
302 if (hud_layer_.get()) { 304 if (hud_layer_.get()) {
303 LayerImpl* hud_impl = LayerTreeHostCommon::FindLayerInSubtree( 305 LayerImpl* hud_impl = LayerTreeHostCommon::FindLayerInSubtree(
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 swap_promise_list_.push_back(swap_promise.Pass()); 1274 swap_promise_list_.push_back(swap_promise.Pass());
1273 } 1275 }
1274 1276
1275 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { 1277 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
1276 for (size_t i = 0; i < swap_promise_list_.size(); i++) 1278 for (size_t i = 0; i < swap_promise_list_.size(); i++)
1277 swap_promise_list_[i]->DidNotSwap(reason); 1279 swap_promise_list_[i]->DidNotSwap(reason);
1278 swap_promise_list_.clear(); 1280 swap_promise_list_.clear();
1279 } 1281 }
1280 1282
1281 } // namespace cc 1283 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698