OLD | NEW |
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 arbitrary_size1, arbitrary_bool2, arbitrary_bool3); | 382 arbitrary_size1, arbitrary_bool2, arbitrary_bool3); |
383 pass_cmp->CopyFromAndAppendDrawQuad(tile_in, tile_in->shared_quad_state); | 383 pass_cmp->CopyFromAndAppendDrawQuad(tile_in, tile_in->shared_quad_state); |
384 | 384 |
385 YUVVideoDrawQuad* yuvvideo_in = | 385 YUVVideoDrawQuad* yuvvideo_in = |
386 pass_in->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); | 386 pass_in->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); |
387 yuvvideo_in->SetAll( | 387 yuvvideo_in->SetAll( |
388 shared_state3_in, arbitrary_rect1, arbitrary_rect2_inside_rect1, | 388 shared_state3_in, arbitrary_rect1, arbitrary_rect2_inside_rect1, |
389 arbitrary_rect1_inside_rect1, arbitrary_bool1, arbitrary_rectf1, | 389 arbitrary_rect1_inside_rect1, arbitrary_bool1, arbitrary_rectf1, |
390 arbitrary_rectf2, arbitrary_size1, arbitrary_size2, arbitrary_resourceid1, | 390 arbitrary_rectf2, arbitrary_size1, arbitrary_size2, arbitrary_resourceid1, |
391 arbitrary_resourceid2, arbitrary_resourceid3, arbitrary_resourceid4, | 391 arbitrary_resourceid2, arbitrary_resourceid3, arbitrary_resourceid4, |
392 arbitrary_color_space, arbitrary_float1, arbitrary_float2); | 392 arbitrary_color_space, arbitrary_float1, arbitrary_float2, arbitrary_int); |
393 pass_cmp->CopyFromAndAppendDrawQuad(yuvvideo_in, | 393 pass_cmp->CopyFromAndAppendDrawQuad(yuvvideo_in, |
394 yuvvideo_in->shared_quad_state); | 394 yuvvideo_in->shared_quad_state); |
395 | 395 |
396 // Make sure the in and cmp RenderPasses match. | 396 // Make sure the in and cmp RenderPasses match. |
397 Compare(child_pass_cmp.get(), child_pass_in.get()); | 397 Compare(child_pass_cmp.get(), child_pass_in.get()); |
398 ASSERT_EQ(0u, child_pass_in->shared_quad_state_list.size()); | 398 ASSERT_EQ(0u, child_pass_in->shared_quad_state_list.size()); |
399 ASSERT_EQ(0u, child_pass_in->quad_list.size()); | 399 ASSERT_EQ(0u, child_pass_in->quad_list.size()); |
400 Compare(pass_cmp.get(), pass_in.get()); | 400 Compare(pass_cmp.get(), pass_in.get()); |
401 ASSERT_EQ(3u, pass_in->shared_quad_state_list.size()); | 401 ASSERT_EQ(3u, pass_in->shared_quad_state_list.size()); |
402 ASSERT_EQ(8u, pass_in->quad_list.size()); | 402 ASSERT_EQ(8u, pass_in->quad_list.size()); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 EXPECT_TRUE( | 600 EXPECT_TRUE( |
601 IPC::ParamTraits<DelegatedFrameData>::Read(&msg, &iter, &frame_out)); | 601 IPC::ParamTraits<DelegatedFrameData>::Read(&msg, &iter, &frame_out)); |
602 | 602 |
603 ASSERT_EQ(2u, frame_out.resource_list.size()); | 603 ASSERT_EQ(2u, frame_out.resource_list.size()); |
604 Compare(arbitrary_resource1, frame_out.resource_list[0]); | 604 Compare(arbitrary_resource1, frame_out.resource_list[0]); |
605 Compare(arbitrary_resource2, frame_out.resource_list[1]); | 605 Compare(arbitrary_resource2, frame_out.resource_list[1]); |
606 } | 606 } |
607 | 607 |
608 } // namespace | 608 } // namespace |
609 } // namespace content | 609 } // namespace content |
OLD | NEW |