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

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

Issue 1135813005: Add detection for rotation and flip overlay transforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move Get*Axis to MathUtil, rename flipped->y_flipped Created 5 years, 7 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
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void Compare(const TextureDrawQuad* a, const TextureDrawQuad* b) { 178 void Compare(const TextureDrawQuad* a, const TextureDrawQuad* b) {
179 EXPECT_EQ(a->resource_id, b->resource_id); 179 EXPECT_EQ(a->resource_id, b->resource_id);
180 EXPECT_EQ(a->premultiplied_alpha, b->premultiplied_alpha); 180 EXPECT_EQ(a->premultiplied_alpha, b->premultiplied_alpha);
181 EXPECT_EQ(a->uv_top_left, b->uv_top_left); 181 EXPECT_EQ(a->uv_top_left, b->uv_top_left);
182 EXPECT_EQ(a->uv_bottom_right, b->uv_bottom_right); 182 EXPECT_EQ(a->uv_bottom_right, b->uv_bottom_right);
183 EXPECT_EQ(a->background_color, b->background_color); 183 EXPECT_EQ(a->background_color, b->background_color);
184 EXPECT_EQ(a->vertex_opacity[0], b->vertex_opacity[0]); 184 EXPECT_EQ(a->vertex_opacity[0], b->vertex_opacity[0]);
185 EXPECT_EQ(a->vertex_opacity[1], b->vertex_opacity[1]); 185 EXPECT_EQ(a->vertex_opacity[1], b->vertex_opacity[1]);
186 EXPECT_EQ(a->vertex_opacity[2], b->vertex_opacity[2]); 186 EXPECT_EQ(a->vertex_opacity[2], b->vertex_opacity[2]);
187 EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]); 187 EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]);
188 EXPECT_EQ(a->flipped, b->flipped); 188 EXPECT_EQ(a->y_flipped, b->y_flipped);
189 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); 189 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor);
190 } 190 }
191 191
192 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) { 192 void Compare(const TileDrawQuad* a, const TileDrawQuad* b) {
193 EXPECT_EQ(a->resource_id, b->resource_id); 193 EXPECT_EQ(a->resource_id, b->resource_id);
194 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect); 194 EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect);
195 EXPECT_EQ(a->texture_size, b->texture_size); 195 EXPECT_EQ(a->texture_size, b->texture_size);
196 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents); 196 EXPECT_EQ(a->swizzle_contents, b->swizzle_contents);
197 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor); 197 EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor);
198 } 198 }
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 SoftwareFrameData frame_out; 758 SoftwareFrameData frame_out;
759 PickleIterator iter(msg); 759 PickleIterator iter(msg);
760 EXPECT_EQ( 760 EXPECT_EQ(
761 expect_read, 761 expect_read,
762 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out)); 762 IPC::ParamTraits<SoftwareFrameData>::Read(&msg, &iter, &frame_out));
763 } 763 }
764 } 764 }
765 765
766 } // namespace 766 } // namespace
767 } // namespace content 767 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698