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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 GetUIResourceSize(overhang_ui_resource_->id())); | 370 GetUIResourceSize(overhang_ui_resource_->id())); |
371 } | 371 } |
372 | 372 |
373 DCHECK(!sync_tree->ViewportSizeInvalid()); | 373 DCHECK(!sync_tree->ViewportSizeInvalid()); |
374 | 374 |
375 if (new_impl_tree_has_no_evicted_resources) { | 375 if (new_impl_tree_has_no_evicted_resources) { |
376 if (sync_tree->ContentsTexturesPurged()) | 376 if (sync_tree->ContentsTexturesPurged()) |
377 sync_tree->ResetContentsTexturesPurged(); | 377 sync_tree->ResetContentsTexturesPurged(); |
378 } | 378 } |
379 | 379 |
| 380 sync_tree->set_has_ever_been_drawn(false); |
| 381 |
380 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); | 382 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); |
381 } | 383 } |
382 | 384 |
383 void LayerTreeHost::WillCommit() { | 385 void LayerTreeHost::WillCommit() { |
384 client_->WillCommit(); | 386 client_->WillCommit(); |
385 } | 387 } |
386 | 388 |
387 void LayerTreeHost::UpdateHudLayer() { | 389 void LayerTreeHost::UpdateHudLayer() { |
388 if (debug_state_.ShowHudInfo()) { | 390 if (debug_state_.ShowHudInfo()) { |
389 if (!hud_layer_.get()) | 391 if (!hud_layer_.get()) |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 swap_promise_list_.push_back(swap_promise.Pass()); | 1284 swap_promise_list_.push_back(swap_promise.Pass()); |
1283 } | 1285 } |
1284 | 1286 |
1285 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1287 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
1286 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1288 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
1287 swap_promise_list_[i]->DidNotSwap(reason); | 1289 swap_promise_list_[i]->DidNotSwap(reason); |
1288 swap_promise_list_.clear(); | 1290 swap_promise_list_.clear(); |
1289 } | 1291 } |
1290 | 1292 |
1291 } // namespace cc | 1293 } // namespace cc |
OLD | NEW |