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

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

Issue 14178005: Fix RenderPassDrawQuad serialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 EXPECT_EQ(a->width, b->width); 120 EXPECT_EQ(a->width, b->width);
121 } 121 }
122 122
123 void Compare(const IOSurfaceDrawQuad* a, const IOSurfaceDrawQuad* b) { 123 void Compare(const IOSurfaceDrawQuad* a, const IOSurfaceDrawQuad* b) {
124 EXPECT_EQ(a->io_surface_size.ToString(), b->io_surface_size.ToString()); 124 EXPECT_EQ(a->io_surface_size.ToString(), b->io_surface_size.ToString());
125 EXPECT_EQ(a->io_surface_resource_id, b->io_surface_resource_id); 125 EXPECT_EQ(a->io_surface_resource_id, b->io_surface_resource_id);
126 EXPECT_EQ(a->orientation, b->orientation); 126 EXPECT_EQ(a->orientation, b->orientation);
127 } 127 }
128 128
129 void Compare(const RenderPassDrawQuad* a, const RenderPassDrawQuad* b) { 129 void Compare(const RenderPassDrawQuad* a, const RenderPassDrawQuad* b) {
130 EXPECT_EQ(a->render_pass_id, b->render_pass_id);
130 EXPECT_EQ(a->is_replica, b->is_replica); 131 EXPECT_EQ(a->is_replica, b->is_replica);
131 EXPECT_EQ(a->mask_resource_id, b->mask_resource_id); 132 EXPECT_EQ(a->mask_resource_id, b->mask_resource_id);
132 EXPECT_EQ(a->contents_changed_since_last_frame, 133 EXPECT_EQ(a->contents_changed_since_last_frame,
133 b->contents_changed_since_last_frame); 134 b->contents_changed_since_last_frame);
134 EXPECT_EQ(a->mask_uv_rect.ToString(), b->mask_uv_rect.ToString()); 135 EXPECT_EQ(a->mask_uv_rect.ToString(), b->mask_uv_rect.ToString());
135 EXPECT_EQ(a->filters, b->filters); 136 EXPECT_EQ(a->filters, b->filters);
136 EXPECT_EQ(a->filter, b->filter); 137 EXPECT_EQ(a->filter, b->filter);
137 EXPECT_EQ(a->background_filters, b->background_filters); 138 EXPECT_EQ(a->background_filters, b->background_filters);
138 } 139 }
139 140
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg, 516 EXPECT_TRUE(IPC::ParamTraits<DelegatedFrameData>::Read(&msg,
516 &iter, &frame_out)); 517 &iter, &frame_out));
517 518
518 ASSERT_EQ(2u, frame_out.resource_list.size()); 519 ASSERT_EQ(2u, frame_out.resource_list.size());
519 Compare(arbitrary_resource1, frame_out.resource_list[0]); 520 Compare(arbitrary_resource1, frame_out.resource_list[0]);
520 Compare(arbitrary_resource2, frame_out.resource_list[1]); 521 Compare(arbitrary_resource2, frame_out.resource_list[1]);
521 } 522 }
522 523
523 } // namespace 524 } // namespace
524 } // namespace content 525 } // namespace content
OLDNEW
« no previous file with comments | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698