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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]); | 187 EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]); |
188 EXPECT_EQ(a->flipped, b->flipped); | 188 EXPECT_EQ(a->flipped, b->flipped); |
189 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); | 189 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); |
190 } | 190 } |
191 | 191 |
192 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { | 192 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { |
193 EXPECT_EQ(a->resource_id, b->resource_id); | 193 EXPECT_EQ(a->resource_id, b->resource_id); |
194 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); | 194 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); |
195 EXPECT_EQ(a->texture_size, b->texture_size); | 195 EXPECT_EQ(a->texture_size, b->texture_size); |
196 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); | 196 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); |
| 197 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); |
197 } | 198 } |
198 | 199 |
199 void Compare(const YUVVideoDrawQuad* a, const YUVVideoDrawQuad* b) { | 200 void Compare(const YUVVideoDrawQuad* a, const YUVVideoDrawQuad* b) { |
200 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); | 201 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); |
201 EXPECT_EQ(a->y_plane_resource_id, b->y_plane_resource_id); | 202 EXPECT_EQ(a->y_plane_resource_id, b->y_plane_resource_id); |
202 EXPECT_EQ(a->u_plane_resource_id, b->u_plane_resource_id); | 203 EXPECT_EQ(a->u_plane_resource_id, b->u_plane_resource_id); |
203 EXPECT_EQ(a->v_plane_resource_id, b->v_plane_resource_id); | 204 EXPECT_EQ(a->v_plane_resource_id, b->v_plane_resource_id); |
204 EXPECT_EQ(a->a_plane_resource_id, b->a_plane_resource_id); | 205 EXPECT_EQ(a->a_plane_resource_id, b->a_plane_resource_id); |
205 EXPECT_EQ(a->color_space, b->color_space); | 206 EXPECT_EQ(a->color_space, b->color_space); |
206 } | 207 } |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 450 |
450 TileDrawQuad* tile_in = pass_in->CreateAndAppendDrawQuad<TileDrawQuad>(); | 451 TileDrawQuad* tile_in = pass_in->CreateAndAppendDrawQuad<TileDrawQuad>(); |
451 tile_in->SetAll(shared_state3_in, | 452 tile_in->SetAll(shared_state3_in, |
452 arbitrary_rect2, | 453 arbitrary_rect2, |
453 arbitrary_rect2_inside_rect2, | 454 arbitrary_rect2_inside_rect2, |
454 arbitrary_rect1_inside_rect2, | 455 arbitrary_rect1_inside_rect2, |
455 arbitrary_bool1, | 456 arbitrary_bool1, |
456 arbitrary_resourceid3, | 457 arbitrary_resourceid3, |
457 arbitrary_rectf1, | 458 arbitrary_rectf1, |
458 arbitrary_size1, | 459 arbitrary_size1, |
459 arbitrary_bool2); | 460 arbitrary_bool2, |
| 461 arbitrary_bool3); |
460 pass_cmp->CopyFromAndAppendDrawQuad(tile_in, tile_in->shared_quad_state); | 462 pass_cmp->CopyFromAndAppendDrawQuad(tile_in, tile_in->shared_quad_state); |
461 | 463 |
462 YUVVideoDrawQuad* yuvvideo_in = | 464 YUVVideoDrawQuad* yuvvideo_in = |
463 pass_in->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); | 465 pass_in->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); |
464 yuvvideo_in->SetAll(shared_state3_in, | 466 yuvvideo_in->SetAll(shared_state3_in, |
465 arbitrary_rect1, | 467 arbitrary_rect1, |
466 arbitrary_rect2_inside_rect1, | 468 arbitrary_rect2_inside_rect1, |
467 arbitrary_rect1_inside_rect1, | 469 arbitrary_rect1_inside_rect1, |
468 arbitrary_bool1, | 470 arbitrary_bool1, |
469 arbitrary_rectf1, | 471 arbitrary_rectf1, |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 SoftwareFrameData frame_out; | 772 SoftwareFrameData frame_out; |
771 PickleIterator iter(msg); | 773 PickleIterator iter(msg); |
772 EXPECT_EQ( | 774 EXPECT_EQ( |
773 expect_read, | 775 expect_read, |
774 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out)); | 776 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out)); |
775 } | 777 } |
776 } | 778 } |
777 | 779 |
778 } // namespace | 780 } // namespace |
779 } // namespace content | 781 } // namespace content |
OLD | NEW |