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

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

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 years, 10 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 | « cc/ipc/cc_param_traits.cc ('k') | cc/ipc/local_frame_id.mojom » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <string.h> 6 #include <string.h>
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 pass_in->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); 371 pass_in->CreateAndAppendDrawQuad<StreamVideoDrawQuad>();
372 streamvideo_in->SetAll( 372 streamvideo_in->SetAll(
373 shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2, 373 shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2,
374 arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid2, 374 arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid2,
375 arbitrary_size1, arbitrary_matrix1); 375 arbitrary_size1, arbitrary_matrix1);
376 pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in, 376 pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in,
377 streamvideo_in->shared_quad_state); 377 streamvideo_in->shared_quad_state);
378 378
379 cc::SurfaceId arbitrary_surface_id( 379 cc::SurfaceId arbitrary_surface_id(
380 kArbitraryFrameSinkId, 380 kArbitraryFrameSinkId,
381 cc::LocalFrameId(3, base::UnguessableToken::Create())); 381 cc::LocalSurfaceId(3, base::UnguessableToken::Create()));
382 SurfaceDrawQuad* surface_in = 382 SurfaceDrawQuad* surface_in =
383 pass_in->CreateAndAppendDrawQuad<SurfaceDrawQuad>(); 383 pass_in->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
384 surface_in->SetAll(shared_state3_in, arbitrary_rect2, 384 surface_in->SetAll(shared_state3_in, arbitrary_rect2,
385 arbitrary_rect2_inside_rect2, arbitrary_rect1_inside_rect2, 385 arbitrary_rect2_inside_rect2, arbitrary_rect1_inside_rect2,
386 arbitrary_bool1, arbitrary_surface_id); 386 arbitrary_bool1, arbitrary_surface_id);
387 pass_cmp->CopyFromAndAppendDrawQuad(surface_in, 387 pass_cmp->CopyFromAndAppendDrawQuad(surface_in,
388 surface_in->shared_quad_state); 388 surface_in->shared_quad_state);
389 389
390 TextureDrawQuad* texture_in = 390 TextureDrawQuad* texture_in =
391 pass_in->CreateAndAppendDrawQuad<TextureDrawQuad>(); 391 pass_in->CreateAndAppendDrawQuad<TextureDrawQuad>();
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 base::PickleIterator iter(msg); 619 base::PickleIterator iter(msg);
620 EXPECT_TRUE(IPC::ParamTraits<CompositorFrame>::Read(&msg, &iter, &frame_out)); 620 EXPECT_TRUE(IPC::ParamTraits<CompositorFrame>::Read(&msg, &iter, &frame_out));
621 621
622 ASSERT_EQ(2u, frame_out.resource_list.size()); 622 ASSERT_EQ(2u, frame_out.resource_list.size());
623 Compare(arbitrary_resource1, frame_out.resource_list[0]); 623 Compare(arbitrary_resource1, frame_out.resource_list[0]);
624 Compare(arbitrary_resource2, frame_out.resource_list[1]); 624 Compare(arbitrary_resource2, frame_out.resource_list[1]);
625 } 625 }
626 626
627 } // namespace 627 } // namespace
628 } // namespace content 628 } // namespace content
OLDNEW
« no previous file with comments | « cc/ipc/cc_param_traits.cc ('k') | cc/ipc/local_frame_id.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698