| 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 "content/common/cc_messages.h" | 5 #include "content/common/cc_messages.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 381 |
| 382 StreamVideoDrawQuad* streamvideo_in = | 382 StreamVideoDrawQuad* streamvideo_in = |
| 383 pass_in->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); | 383 pass_in->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); |
| 384 streamvideo_in->SetAll( | 384 streamvideo_in->SetAll( |
| 385 shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2, | 385 shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2, |
| 386 arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid2, | 386 arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid2, |
| 387 arbitrary_size1, arbitrary_matrix1); | 387 arbitrary_size1, arbitrary_matrix1); |
| 388 pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in, | 388 pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in, |
| 389 streamvideo_in->shared_quad_state); | 389 streamvideo_in->shared_quad_state); |
| 390 | 390 |
| 391 cc::SurfaceId arbitrary_surface_id(3); | 391 cc::SurfaceId arbitrary_surface_id = cc::SurfaceId::FromUnsafeValue(3); |
| 392 SurfaceDrawQuad* surface_in = | 392 SurfaceDrawQuad* surface_in = |
| 393 pass_in->CreateAndAppendDrawQuad<SurfaceDrawQuad>(); | 393 pass_in->CreateAndAppendDrawQuad<SurfaceDrawQuad>(); |
| 394 surface_in->SetAll(shared_state3_in, | 394 surface_in->SetAll(shared_state3_in, |
| 395 arbitrary_rect2, | 395 arbitrary_rect2, |
| 396 arbitrary_rect2_inside_rect2, | 396 arbitrary_rect2_inside_rect2, |
| 397 arbitrary_rect1_inside_rect2, | 397 arbitrary_rect1_inside_rect2, |
| 398 arbitrary_bool1, | 398 arbitrary_bool1, |
| 399 arbitrary_surface_id); | 399 arbitrary_surface_id); |
| 400 pass_cmp->CopyFromAndAppendDrawQuad(surface_in, | 400 pass_cmp->CopyFromAndAppendDrawQuad(surface_in, |
| 401 surface_in->shared_quad_state); | 401 surface_in->shared_quad_state); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, | 665 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, |
| 666 &iter, &frame_out)); | 666 &iter, &frame_out)); |
| 667 | 667 |
| 668 ASSERT_EQ(2u, frame_out.resource_list.size()); | 668 ASSERT_EQ(2u, frame_out.resource_list.size()); |
| 669 Compare(arbitrary_resource1, frame_out.resource_list[0]); | 669 Compare(arbitrary_resource1, frame_out.resource_list[0]); |
| 670 Compare(arbitrary_resource2, frame_out.resource_list[1]); | 670 Compare(arbitrary_resource2, frame_out.resource_list[1]); |
| 671 } | 671 } |
| 672 | 672 |
| 673 } // namespace | 673 } // namespace |
| 674 } // namespace content | 674 } // namespace content |
| OLD | NEW |