Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Unified Diff: content/browser/renderer_host/input/render_widget_host_latency_tracker.cc

Issue 2788893004: Renaming gpu swap buffer callbacks and the screenshot latency component. (Closed)
Patch Set: Updating android compositor Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698