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

Unified Diff: content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.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_unittest.cc
diff --git a/content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc b/content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc
index 12ffdff2f047afe70ad58f34948518b27d6f91fd..a161e2f0938b8dffdf03742c0d3906c14458f076 100644
--- a/content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc
+++ b/content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc
@@ -202,7 +202,7 @@ TEST_F(RenderWidgetHostLatencyTrackerTest, TestWheelToFirstScrollHistograms) {
EXPECT_EQ(1U, wheel_latency.input_coordinates_size());
tracker()->OnInputEventAck(wheel, &wheel_latency,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
- tracker()->OnFrameSwapped(wheel_latency);
+ tracker()->OnGpuSwapBuffersCompleted(wheel_latency);
// Rappor metrics.
EXPECT_TRUE(
@@ -294,7 +294,7 @@ TEST_F(RenderWidgetHostLatencyTrackerTest, TestWheelToScrollHistograms) {
EXPECT_EQ(1U, wheel_latency.input_coordinates_size());
tracker()->OnInputEventAck(wheel, &wheel_latency,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
- tracker()->OnFrameSwapped(wheel_latency);
+ tracker()->OnGpuSwapBuffersCompleted(wheel_latency);
EXPECT_TRUE(HistogramSizeEq("Event.Latency.Browser.WheelUI", 1));
EXPECT_TRUE(HistogramSizeEq("Event.Latency.Browser.WheelAcked", 1));
@@ -392,7 +392,7 @@ TEST_F(RenderWidgetHostLatencyTrackerTest, TestTouchToFirstScrollHistograms) {
EXPECT_EQ(2U, touch_latency.input_coordinates_size());
tracker()->OnInputEventAck(touch, &touch_latency,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
- tracker()->OnFrameSwapped(touch_latency);
+ tracker()->OnGpuSwapBuffersCompleted(touch_latency);
}
// Rappor metrics.
@@ -512,7 +512,7 @@ TEST_F(RenderWidgetHostLatencyTrackerTest, TestTouchToScrollHistograms) {
EXPECT_EQ(2U, touch_latency.input_coordinates_size());
tracker()->OnInputEventAck(touch, &touch_latency,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
- tracker()->OnFrameSwapped(touch_latency);
+ tracker()->OnGpuSwapBuffersCompleted(touch_latency);
}
// Rappor metrics.
@@ -616,7 +616,7 @@ TEST_F(RenderWidgetHostLatencyTrackerTest,
EXPECT_TRUE(touch_latency.FindLatency(
ui::INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT, 0, nullptr));
EXPECT_TRUE(touch_latency.terminated());
- tracker()->OnFrameSwapped(touch_latency);
+ tracker()->OnGpuSwapBuffersCompleted(touch_latency);
}
{

Powered by Google App Engine
This is Rietveld 408576698