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

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

Issue 166853002: Revert of Fix (or tag) uses of explicit '64' instead of GL_MAILBOX_SIZE_CHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 <algorithm> 9 #include <algorithm>
10 10
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 EXPECT_EQ(gfx::Size(4, 4).ToString(), 634 EXPECT_EQ(gfx::Size(4, 4).ToString(),
635 pass_out->shared_quad_state_list[1]->content_bounds.ToString()); 635 pass_out->shared_quad_state_list[1]->content_bounds.ToString());
636 } 636 }
637 637
638 TEST_F(CCMessagesTest, Resources) { 638 TEST_F(CCMessagesTest, Resources) {
639 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL); 639 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
640 gfx::Size arbitrary_size(757, 1281); 640 gfx::Size arbitrary_size(757, 1281);
641 unsigned int arbitrary_uint1 = 71234838; 641 unsigned int arbitrary_uint1 = 71234838;
642 unsigned int arbitrary_uint2 = 53589793; 642 unsigned int arbitrary_uint2 = 53589793;
643 643
644 GLbyte arbitrary_mailbox1[GL_MAILBOX_SIZE_CHROMIUM] = { 644 GLbyte arbitrary_mailbox1[64] = {
645 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 645 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,
646 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 646 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,
647 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4}; 647 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,
648 1, 2, 3, 4
649 };
648 650
649 GLbyte arbitrary_mailbox2[GL_MAILBOX_SIZE_CHROMIUM] = { 651 GLbyte arbitrary_mailbox2[64] = {
650 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0, 0, 9, 652 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0,
651 8, 7, 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0, 0, 9, 8, 7, 653 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0,
652 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0, 0, 9, 8, 7}; 654 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 7, 5, 3, 1, 2, 4, 6, 8, 0,
655 0, 9, 8, 7
656 };
653 657
654 TransferableResource arbitrary_resource1; 658 TransferableResource arbitrary_resource1;
655 arbitrary_resource1.id = 2178312; 659 arbitrary_resource1.id = 2178312;
656 arbitrary_resource1.format = cc::RGBA_8888; 660 arbitrary_resource1.format = cc::RGBA_8888;
657 arbitrary_resource1.filter = 53; 661 arbitrary_resource1.filter = 53;
658 arbitrary_resource1.size = gfx::Size(37189, 123123); 662 arbitrary_resource1.size = gfx::Size(37189, 123123);
659 arbitrary_resource1.mailbox_holder.mailbox.SetName(arbitrary_mailbox1); 663 arbitrary_resource1.mailbox_holder.mailbox.SetName(arbitrary_mailbox1);
660 arbitrary_resource1.mailbox_holder.texture_target = GL_TEXTURE_2D; 664 arbitrary_resource1.mailbox_holder.texture_target = GL_TEXTURE_2D;
661 arbitrary_resource1.mailbox_holder.sync_point = arbitrary_uint1; 665 arbitrary_resource1.mailbox_holder.sync_point = arbitrary_uint1;
662 666
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 741 }
738 742
739 // Verify the largest DrawQuad type is RenderPassDrawQuad. If this ever 743 // Verify the largest DrawQuad type is RenderPassDrawQuad. If this ever
740 // changes, then the ReserveSizeForRenderPassWrite() method needs to be 744 // changes, then the ReserveSizeForRenderPassWrite() method needs to be
741 // updated as well to use the new largest quad. 745 // updated as well to use the new largest quad.
742 EXPECT_EQ(sizeof(RenderPassDrawQuad), largest); 746 EXPECT_EQ(sizeof(RenderPassDrawQuad), largest);
743 } 747 }
744 748
745 } // namespace 749 } // namespace
746 } // namespace content 750 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698