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

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

Issue 1097583002: cc: Commit property trees to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win bool conversion compile fix Created 5 years, 8 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
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 358 }
359 359
360 DCHECK(!sync_tree->ViewportSizeInvalid()); 360 DCHECK(!sync_tree->ViewportSizeInvalid());
361 361
362 if (new_impl_tree_has_no_evicted_resources) { 362 if (new_impl_tree_has_no_evicted_resources) {
363 if (sync_tree->ContentsTexturesPurged()) 363 if (sync_tree->ContentsTexturesPurged())
364 sync_tree->ResetContentsTexturesPurged(); 364 sync_tree->ResetContentsTexturesPurged();
365 } 365 }
366 366
367 sync_tree->set_has_ever_been_drawn(false); 367 sync_tree->set_has_ever_been_drawn(false);
368 sync_tree->SetPropertyTrees(property_trees_);
368 369
369 { 370 {
370 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties"); 371 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties");
371 TreeSynchronizer::PushProperties(root_layer(), sync_tree->root_layer()); 372 TreeSynchronizer::PushProperties(root_layer(), sync_tree->root_layer());
372 } 373 }
373 374
374 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); 375 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
375 } 376 }
376 377
377 void LayerTreeHost::WillCommit() { 378 void LayerTreeHost::WillCommit() {
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 const BeginFrameArgs& args) const { 1287 const BeginFrameArgs& args) const {
1287 client_->SendBeginFramesToChildren(args); 1288 client_->SendBeginFramesToChildren(args);
1288 } 1289 }
1289 1290
1290 void LayerTreeHost::SetAuthoritativeVSyncInterval( 1291 void LayerTreeHost::SetAuthoritativeVSyncInterval(
1291 const base::TimeDelta& interval) { 1292 const base::TimeDelta& interval) {
1292 proxy_->SetAuthoritativeVSyncInterval(interval); 1293 proxy_->SetAuthoritativeVSyncInterval(interval);
1293 } 1294 }
1294 1295
1295 } // namespace cc 1296 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698