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

Side by Side Diff: cc/ipc/struct_traits_unittest.cc

Issue 2953073002: LatencyInfo trace_id_ no longer dependent on sequence_number. (Closed)
Patch Set: Address nit. Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/latency_info_swap_promise_monitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <utility> 5 #include <utility>
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "cc/input/selection.h" 9 #include "cc/input/selection.h"
10 #include "cc/ipc/copy_output_request_struct_traits.h" 10 #include "cc/ipc/copy_output_request_struct_traits.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 Selection<gfx::SelectionBound> selection; 355 Selection<gfx::SelectionBound> selection;
356 selection.start.SetEdge(gfx::PointF(1234.5f, 67891.f), 356 selection.start.SetEdge(gfx::PointF(1234.5f, 67891.f),
357 gfx::PointF(5432.1f, 1987.6f)); 357 gfx::PointF(5432.1f, 1987.6f));
358 selection.start.set_visible(true); 358 selection.start.set_visible(true);
359 selection.start.set_type(gfx::SelectionBound::CENTER); 359 selection.start.set_type(gfx::SelectionBound::CENTER);
360 selection.end.SetEdge(gfx::PointF(1337.5f, 52124.f), 360 selection.end.SetEdge(gfx::PointF(1337.5f, 52124.f),
361 gfx::PointF(1234.3f, 8765.6f)); 361 gfx::PointF(1234.3f, 8765.6f));
362 selection.end.set_visible(false); 362 selection.end.set_visible(false);
363 selection.end.set_type(gfx::SelectionBound::RIGHT); 363 selection.end.set_type(gfx::SelectionBound::RIGHT);
364 ui::LatencyInfo latency_info; 364 ui::LatencyInfo latency_info;
365 latency_info.set_trace_id(5);
365 latency_info.AddLatencyNumber( 366 latency_info.AddLatencyNumber(
366 ui::LATENCY_BEGIN_SCROLL_LISTENER_UPDATE_MAIN_COMPONENT, 1337, 7331); 367 ui::LATENCY_BEGIN_SCROLL_LISTENER_UPDATE_MAIN_COMPONENT, 1337, 7331);
367 std::vector<ui::LatencyInfo> latency_infos = {latency_info}; 368 std::vector<ui::LatencyInfo> latency_infos = {latency_info};
368 std::vector<SurfaceId> referenced_surfaces; 369 std::vector<SurfaceId> referenced_surfaces;
369 SurfaceId id(FrameSinkId(1234, 4321), 370 SurfaceId id(FrameSinkId(1234, 4321),
370 LocalSurfaceId(5678, base::UnguessableToken::Create())); 371 LocalSurfaceId(5678, base::UnguessableToken::Create()));
371 referenced_surfaces.push_back(id); 372 referenced_surfaces.push_back(id);
372 std::vector<SurfaceId> activation_dependencies; 373 std::vector<SurfaceId> activation_dependencies;
373 SurfaceId id2(FrameSinkId(4321, 1234), 374 SurfaceId id2(FrameSinkId(4321, 1234),
374 LocalSurfaceId(8765, base::UnguessableToken::Create())); 375 LocalSurfaceId(8765, base::UnguessableToken::Create()));
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id()); 1248 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id());
1248 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id()); 1249 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id());
1249 EXPECT_EQ(color_space, out_quad->color_space); 1250 EXPECT_EQ(color_space, out_quad->color_space);
1250 EXPECT_EQ(resource_offset, out_quad->resource_offset); 1251 EXPECT_EQ(resource_offset, out_quad->resource_offset);
1251 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier); 1252 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier);
1252 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel); 1253 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel);
1253 EXPECT_EQ(require_overlay, out_quad->require_overlay); 1254 EXPECT_EQ(require_overlay, out_quad->require_overlay);
1254 } 1255 }
1255 1256
1256 } // namespace cc 1257 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/latency_info_swap_promise_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698