| 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 "cc/compositor_frame.h" | 9 #include "cc/compositor_frame.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 void Compare(const StreamVideoDrawQuad* a, const StreamVideoDrawQuad* b) { | 139 void Compare(const StreamVideoDrawQuad* a, const StreamVideoDrawQuad* b) { |
| 140 EXPECT_EQ(a->texture_id, b->texture_id); | 140 EXPECT_EQ(a->texture_id, b->texture_id); |
| 141 EXPECT_EQ(a->matrix, b->matrix); | 141 EXPECT_EQ(a->matrix, b->matrix); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void Compare(const TextureDrawQuad* a, const TextureDrawQuad* b) { | 144 void Compare(const TextureDrawQuad* a, const TextureDrawQuad* b) { |
| 145 EXPECT_EQ(a->resource_id, b->resource_id); | 145 EXPECT_EQ(a->resource_id, b->resource_id); |
| 146 EXPECT_EQ(a->premultiplied_alpha, b->premultiplied_alpha); | 146 EXPECT_EQ(a->premultiplied_alpha, b->premultiplied_alpha); |
| 147 EXPECT_EQ(a->uv_rect, b->uv_rect); | 147 EXPECT_EQ(a->uv_top_left, b->uv_top_left); |
| 148 EXPECT_EQ(a->uv_bottom_right, b->uv_bottom_right); |
| 148 EXPECT_EQ(a->flipped, b->flipped); | 149 EXPECT_EQ(a->flipped, b->flipped); |
| 149 } | 150 } |
| 150 | 151 |
| 151 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { | 152 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { |
| 152 EXPECT_EQ(a->resource_id, b->resource_id); | 153 EXPECT_EQ(a->resource_id, b->resource_id); |
| 153 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); | 154 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); |
| 154 EXPECT_EQ(a->texture_size, b->texture_size); | 155 EXPECT_EQ(a->texture_size, b->texture_size); |
| 155 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); | 156 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); |
| 156 EXPECT_EQ(a->left_edge_aa, b->left_edge_aa); | 157 EXPECT_EQ(a->left_edge_aa, b->left_edge_aa); |
| 157 EXPECT_EQ(a->top_edge_aa, b->top_edge_aa); | 158 EXPECT_EQ(a->top_edge_aa, b->top_edge_aa); |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 EXPECT_EQ(arbitrary_size.ToString(), frame_out.size.ToString()); | 495 EXPECT_EQ(arbitrary_size.ToString(), frame_out.size.ToString()); |
| 495 EXPECT_EQ(arbitrary_uint, frame_out.resource_list.sync_point); | 496 EXPECT_EQ(arbitrary_uint, frame_out.resource_list.sync_point); |
| 496 | 497 |
| 497 EXPECT_EQ(2u, frame_out.resource_list.resources.size()); | 498 EXPECT_EQ(2u, frame_out.resource_list.resources.size()); |
| 498 Compare(arbitrary_resource1, frame_out.resource_list.resources[0]); | 499 Compare(arbitrary_resource1, frame_out.resource_list.resources[0]); |
| 499 Compare(arbitrary_resource2, frame_out.resource_list.resources[1]); | 500 Compare(arbitrary_resource2, frame_out.resource_list.resources[1]); |
| 500 } | 501 } |
| 501 | 502 |
| 502 } // namespace | 503 } // namespace |
| 503 } // namespace content | 504 } // namespace content |
| OLD | NEW |