| 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 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 for (auto& latency : metadata.latency_info) { | 1718 for (auto& latency : metadata.latency_info) { |
| 1719 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", | 1719 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", |
| 1720 TRACE_ID_DONT_MANGLE(latency.trace_id()), | 1720 TRACE_ID_DONT_MANGLE(latency.trace_id()), |
| 1721 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, | 1721 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, |
| 1722 "step", "SwapBuffers"); | 1722 "step", "SwapBuffers"); |
| 1723 // Only add the latency component once for renderer swap, not the browser | 1723 // Only add the latency component once for renderer swap, not the browser |
| 1724 // swap. | 1724 // swap. |
| 1725 if (!latency.FindLatency(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, 0, | 1725 if (!latency.FindLatency(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, 0, |
| 1726 nullptr)) { | 1726 nullptr)) { |
| 1727 latency.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, | 1727 latency.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, |
| 1728 0, 0); | 1728 0); |
| 1729 } | 1729 } |
| 1730 } | 1730 } |
| 1731 | 1731 |
| 1732 // Collect all resource ids in the render passes into a single array. | 1732 // Collect all resource ids in the render passes into a single array. |
| 1733 ResourceProvider::ResourceIdArray resources; | 1733 ResourceProvider::ResourceIdArray resources; |
| 1734 for (const auto& render_pass : frame->render_passes) { | 1734 for (const auto& render_pass : frame->render_passes) { |
| 1735 for (auto* quad : render_pass->quad_list) { | 1735 for (auto* quad : render_pass->quad_list) { |
| 1736 for (ResourceId resource_id : quad->resources) | 1736 for (ResourceId resource_id : quad->resources) |
| 1737 resources.push_back(resource_id); | 1737 resources.push_back(resource_id); |
| 1738 } | 1738 } |
| (...skipping 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4299 | 4299 |
| 4300 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { | 4300 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { |
| 4301 if (!element_id) | 4301 if (!element_id) |
| 4302 return; | 4302 return; |
| 4303 if (ScrollbarAnimationController* animation_controller = | 4303 if (ScrollbarAnimationController* animation_controller = |
| 4304 ScrollbarAnimationControllerForElementId(element_id)) | 4304 ScrollbarAnimationControllerForElementId(element_id)) |
| 4305 animation_controller->DidScrollUpdate(); | 4305 animation_controller->DidScrollUpdate(); |
| 4306 } | 4306 } |
| 4307 | 4307 |
| 4308 } // namespace cc | 4308 } // namespace cc |
| OLD | NEW |