Chromium Code Reviews| 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/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 340 texture_in->SetAll(shared_state1_in.get(), | 340 texture_in->SetAll(shared_state1_in.get(), |
| 341 arbitrary_rect2, | 341 arbitrary_rect2, |
| 342 arbitrary_rect3, | 342 arbitrary_rect3, |
| 343 arbitrary_rect1, | 343 arbitrary_rect1, |
| 344 arbitrary_bool1, | 344 arbitrary_bool1, |
| 345 arbitrary_resourceid1, | 345 arbitrary_resourceid1, |
| 346 arbitrary_bool2, | 346 arbitrary_bool2, |
| 347 arbitrary_pointf1, | 347 arbitrary_pointf1, |
| 348 arbitrary_pointf2, | 348 arbitrary_pointf2, |
| 349 arbitrary_float_array, | 349 arbitrary_float_array, |
| 350 arbitrary_color, | |
|
piman
2013/07/03 20:11:12
Please also add the field to Compare(const Texture
alokp
2013/07/09 00:08:06
Done.
| |
| 350 arbitrary_bool3); | 351 arbitrary_bool3); |
| 351 scoped_ptr<DrawQuad> texture_cmp = texture_in->Copy( | 352 scoped_ptr<DrawQuad> texture_cmp = texture_in->Copy( |
| 352 texture_in->shared_quad_state); | 353 texture_in->shared_quad_state); |
| 353 | 354 |
| 354 scoped_ptr<TileDrawQuad> tile_in = TileDrawQuad::Create(); | 355 scoped_ptr<TileDrawQuad> tile_in = TileDrawQuad::Create(); |
| 355 tile_in->SetAll(shared_state1_in.get(), | 356 tile_in->SetAll(shared_state1_in.get(), |
| 356 arbitrary_rect2, | 357 arbitrary_rect2, |
| 357 arbitrary_rect3, | 358 arbitrary_rect3, |
| 358 arbitrary_rect1, | 359 arbitrary_rect1, |
| 359 arbitrary_bool1, | 360 arbitrary_bool1, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 521 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, | 522 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, |
| 522 &iter, &frame_out)); | 523 &iter, &frame_out)); |
| 523 | 524 |
| 524 ASSERT_EQ(2u, frame_out.resource_list.size()); | 525 ASSERT_EQ(2u, frame_out.resource_list.size()); |
| 525 Compare(arbitrary_resource1, frame_out.resource_list[0]); | 526 Compare(arbitrary_resource1, frame_out.resource_list[0]); |
| 526 Compare(arbitrary_resource2, frame_out.resource_list[1]); | 527 Compare(arbitrary_resource2, frame_out.resource_list[1]); |
| 527 } | 528 } |
| 528 | 529 |
| 529 } // namespace | 530 } // namespace |
| 530 } // namespace content | 531 } // namespace content |
| OLD | NEW |