Index: content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
diff --git a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
index 8ebace902992f25699280254bcd8b17cf708a4a8..51c374503499c9f359ca8579fcb3cd791be005ad 100644 |
--- a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
+++ b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
@@ -308,7 +308,7 @@ void AddLatencyInfoComponentIds(LatencyInfo* latency, |
std::vector<LatencyInfo::LatencyComponent> new_components_value; |
for (const auto& lc : latency->latency_components()) { |
ui::LatencyComponentType component_type = lc.first.first; |
- if (component_type == ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT) { |
+ if (component_type == ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT) { |
// Generate a new component entry with the correct component ID |
new_components_key.push_back(std::make_pair(component_type, |
latency_component_id)); |
@@ -317,7 +317,7 @@ void AddLatencyInfoComponentIds(LatencyInfo* latency, |
} |
// Remove the entries with invalid component IDs. |
- latency->RemoveLatency(ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT); |
+ latency->RemoveLatency(ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT); |
// Add newly generated components into the latency info |
for (size_t i = 0; i < new_components_key.size(); i++) { |
@@ -535,7 +535,7 @@ void RenderWidgetHostLatencyTracker::OnSwapCompositorFrame( |
} |
} |
-void RenderWidgetHostLatencyTracker::OnFrameSwapped( |
+void RenderWidgetHostLatencyTracker::OnGpuSwapBuffersCompleted( |
const LatencyInfo& latency) { |
LatencyInfo::LatencyComponent gpu_swap_end_component; |
if (!latency.FindLatency( |