| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 if (LayerTreeDebugState::Equal(debug_state_, new_debug_state)) | 557 if (LayerTreeDebugState::Equal(debug_state_, new_debug_state)) |
| 558 return; | 558 return; |
| 559 | 559 |
| 560 debug_state_ = new_debug_state; | 560 debug_state_ = new_debug_state; |
| 561 | 561 |
| 562 rendering_stats_instrumentation_->set_record_rendering_stats( | 562 rendering_stats_instrumentation_->set_record_rendering_stats( |
| 563 debug_state_.RecordRenderingStats()); | 563 debug_state_.RecordRenderingStats()); |
| 564 | 564 |
| 565 SetNeedsCommit(); | 565 SetNeedsCommit(); |
| 566 proxy_->SetDebugState(debug_state); | |
| 567 } | 566 } |
| 568 | 567 |
| 569 void LayerTreeHost::SetHasGpuRasterizationTrigger(bool has_trigger) { | 568 void LayerTreeHost::SetHasGpuRasterizationTrigger(bool has_trigger) { |
| 570 if (has_trigger == has_gpu_rasterization_trigger_) | 569 if (has_trigger == has_gpu_rasterization_trigger_) |
| 571 return; | 570 return; |
| 572 | 571 |
| 573 has_gpu_rasterization_trigger_ = has_trigger; | 572 has_gpu_rasterization_trigger_ = has_trigger; |
| 574 TRACE_EVENT_INSTANT1("cc", | 573 TRACE_EVENT_INSTANT1("cc", |
| 575 "LayerTreeHost::SetHasGpuRasterizationTrigger", | 574 "LayerTreeHost::SetHasGpuRasterizationTrigger", |
| 576 TRACE_EVENT_SCOPE_THREAD, | 575 TRACE_EVENT_SCOPE_THREAD, |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) | 1236 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) |
| 1238 : false; | 1237 : false; |
| 1239 } | 1238 } |
| 1240 | 1239 |
| 1241 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { | 1240 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { |
| 1242 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) | 1241 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) |
| 1243 : false; | 1242 : false; |
| 1244 } | 1243 } |
| 1245 | 1244 |
| 1246 } // namespace cc | 1245 } // namespace cc |
| OLD | NEW |