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

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

Issue 1007953003: Revert of Increase YUV video clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« 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 <algorithm> 9 #include <algorithm>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { 193 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) {
194 EXPECT_EQ(a->resource_id, b->resource_id); 194 EXPECT_EQ(a->resource_id, b->resource_id);
195 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); 195 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect);
196 EXPECT_EQ(a->texture_size, b->texture_size); 196 EXPECT_EQ(a->texture_size, b->texture_size);
197 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); 197 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents);
198 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); 198 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor);
199 } 199 }
200 200
201 void Compare(const YUVVideoDrawQuad* a, const YUVVideoDrawQuad* b) { 201 void Compare(const YUVVideoDrawQuad* a, const YUVVideoDrawQuad* b) {
202 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); 202 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect);
203 EXPECT_EQ(a->min_tex_size, b->min_tex_size); 203 EXPECT_EQ(a->tex_size, b->tex_size);
204 EXPECT_EQ(a->y_plane_resource_id, b->y_plane_resource_id); 204 EXPECT_EQ(a->y_plane_resource_id, b->y_plane_resource_id);
205 EXPECT_EQ(a->u_plane_resource_id, b->u_plane_resource_id); 205 EXPECT_EQ(a->u_plane_resource_id, b->u_plane_resource_id);
206 EXPECT_EQ(a->v_plane_resource_id, b->v_plane_resource_id); 206 EXPECT_EQ(a->v_plane_resource_id, b->v_plane_resource_id);
207 EXPECT_EQ(a->a_plane_resource_id, b->a_plane_resource_id); 207 EXPECT_EQ(a->a_plane_resource_id, b->a_plane_resource_id);
208 EXPECT_EQ(a->color_space, b->color_space); 208 EXPECT_EQ(a->color_space, b->color_space);
209 } 209 }
210 210
211 void Compare(const TransferableResource& a, const TransferableResource& b) { 211 void Compare(const TransferableResource& a, const TransferableResource& b) {
212 EXPECT_EQ(a.id, b.id); 212 EXPECT_EQ(a.id, b.id);
213 EXPECT_EQ(a.format, b.format); 213 EXPECT_EQ(a.format, b.format);
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 SoftwareFrameData frame_out; 765 SoftwareFrameData frame_out;
766 PickleIterator iter(msg); 766 PickleIterator iter(msg);
767 EXPECT_EQ( 767 EXPECT_EQ(
768 expect_read, 768 expect_read,
769 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out)); 769 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out));
770 } 770 }
771 } 771 }
772 772
773 } // namespace 773 } // namespace
774 } // namespace content 774 } // 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