Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: content/common/cc_messages_unittest.cc

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: separate shaders for textures with background Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698