OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |