| 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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 for (auto& latency : metadata.latency_info) { | 1727 for (auto& latency : metadata.latency_info) { |
| 1728 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", | 1728 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", |
| 1729 TRACE_ID_DONT_MANGLE(latency.trace_id()), | 1729 TRACE_ID_DONT_MANGLE(latency.trace_id()), |
| 1730 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, | 1730 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, |
| 1731 "step", "SwapBuffers"); | 1731 "step", "SwapBuffers"); |
| 1732 // Only add the latency component once for renderer swap, not the browser | 1732 // Only add the latency component once for renderer swap, not the browser |
| 1733 // swap. | 1733 // swap. |
| 1734 if (!latency.FindLatency(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, 0, | 1734 if (!latency.FindLatency(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, 0, |
| 1735 nullptr)) { | 1735 nullptr)) { |
| 1736 latency.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, | 1736 latency.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, |
| 1737 0, 0); | 1737 0); |
| 1738 } | 1738 } |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 // Collect all resource ids in the render passes into a single array. | 1741 // Collect all resource ids in the render passes into a single array. |
| 1742 ResourceProvider::ResourceIdArray resources; | 1742 ResourceProvider::ResourceIdArray resources; |
| 1743 for (const auto& render_pass : frame->render_passes) { | 1743 for (const auto& render_pass : frame->render_passes) { |
| 1744 for (auto* quad : render_pass->quad_list) { | 1744 for (auto* quad : render_pass->quad_list) { |
| 1745 for (ResourceId resource_id : quad->resources) | 1745 for (ResourceId resource_id : quad->resources) |
| 1746 resources.push_back(resource_id); | 1746 resources.push_back(resource_id); |
| 1747 } | 1747 } |
| (...skipping 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4414 | 4414 |
| 4415 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { | 4415 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { |
| 4416 if (!element_id) | 4416 if (!element_id) |
| 4417 return; | 4417 return; |
| 4418 if (ScrollbarAnimationController* animation_controller = | 4418 if (ScrollbarAnimationController* animation_controller = |
| 4419 ScrollbarAnimationControllerForElementId(element_id)) | 4419 ScrollbarAnimationControllerForElementId(element_id)) |
| 4420 animation_controller->DidScrollUpdate(); | 4420 animation_controller->DidScrollUpdate(); |
| 4421 } | 4421 } |
| 4422 | 4422 |
| 4423 } // namespace cc | 4423 } // namespace cc |
| OLD | NEW |