| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 if (new_impl_tree_has_no_evicted_resources) { | 404 if (new_impl_tree_has_no_evicted_resources) { |
| 405 if (sync_tree->ContentsTexturesPurged()) | 405 if (sync_tree->ContentsTexturesPurged()) |
| 406 sync_tree->ResetContentsTexturesPurged(); | 406 sync_tree->ResetContentsTexturesPurged(); |
| 407 } | 407 } |
| 408 | 408 |
| 409 if (!settings_.impl_side_painting) { | 409 if (!settings_.impl_side_painting) { |
| 410 // If we're not in impl-side painting, the tree is immediately | 410 // If we're not in impl-side painting, the tree is immediately |
| 411 // considered active. | 411 // considered active. |
| 412 sync_tree->DidBecomeActive(); | 412 sync_tree->DidBecomeActive(); |
| 413 devtools_instrumentation::didActivateLayerTree(id_, source_frame_number_); | 413 devtools_instrumentation::DidActivateLayerTree(id_, source_frame_number_); |
| 414 } | 414 } |
| 415 | 415 |
| 416 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); | 416 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); |
| 417 | 417 |
| 418 source_frame_number_++; | 418 source_frame_number_++; |
| 419 } | 419 } |
| 420 | 420 |
| 421 void LayerTreeHost::WillCommit() { | 421 void LayerTreeHost::WillCommit() { |
| 422 client_->WillCommit(); | 422 client_->WillCommit(); |
| 423 } | 423 } |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 swap_promise_list_.push_back(swap_promise.Pass()); | 1320 swap_promise_list_.push_back(swap_promise.Pass()); |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1323 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
| 1324 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1324 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
| 1325 swap_promise_list_[i]->DidNotSwap(reason); | 1325 swap_promise_list_[i]->DidNotSwap(reason); |
| 1326 swap_promise_list_.clear(); | 1326 swap_promise_list_.clear(); |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 } // namespace cc | 1329 } // namespace cc |
| OLD | NEW |