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

Side by Side Diff: cc/test/render_pass_test_common.cc

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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 | « cc/test/layer_test_common.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/test/render_pass_test_common.h" 5 #include "cc/test/render_pass_test_common.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/quads/checkerboard_draw_quad.h" 8 #include "cc/quads/checkerboard_draw_quad.h"
9 #include "cc/quads/debug_border_draw_quad.h" 9 #include "cc/quads/debug_border_draw_quad.h"
10 #include "cc/quads/io_surface_draw_quad.h" 10 #include "cc/quads/io_surface_draw_quad.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 resource2, 186 resource2,
187 gfx::RectF(0, 0, 50, 50), 187 gfx::RectF(0, 0, 50, 50),
188 gfx::Size(50, 50), 188 gfx::Size(50, 50),
189 false, 189 false,
190 false); 190 false);
191 191
192 SharedQuadState* transformed_state = this->CreateAndAppendSharedQuadState(); 192 SharedQuadState* transformed_state = this->CreateAndAppendSharedQuadState();
193 transformed_state->CopyFrom(shared_state); 193 transformed_state->CopyFrom(shared_state);
194 gfx::Transform rotation; 194 gfx::Transform rotation;
195 rotation.Rotate(45); 195 rotation.Rotate(45);
196 transformed_state->content_to_target_transform = 196 transformed_state->quad_to_target_transform =
197 transformed_state->content_to_target_transform * rotation; 197 transformed_state->quad_to_target_transform * rotation;
198 TileDrawQuad* transformed_tile_quad = 198 TileDrawQuad* transformed_tile_quad =
199 this->CreateAndAppendDrawQuad<TileDrawQuad>(); 199 this->CreateAndAppendDrawQuad<TileDrawQuad>();
200 transformed_tile_quad->SetNew(transformed_state, 200 transformed_tile_quad->SetNew(transformed_state,
201 rect, 201 rect,
202 opaque_rect, 202 opaque_rect,
203 visible_rect, 203 visible_rect,
204 resource3, 204 resource3,
205 gfx::RectF(0, 0, 100, 100), 205 gfx::RectF(0, 0, 100, 100),
206 gfx::Size(100, 100), 206 gfx::Size(100, 100),
207 false, 207 false,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 YUVVideoDrawQuad* yuv_quad = 240 YUVVideoDrawQuad* yuv_quad =
241 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); 241 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
242 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, 242 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect,
243 gfx::RectF(.0f, .0f, 100.0f, 100.0f), 243 gfx::RectF(.0f, .0f, 100.0f, 100.0f),
244 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100), 244 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100),
245 gfx::Size(50, 50), plane_resources[0], plane_resources[1], 245 gfx::Size(50, 50), plane_resources[0], plane_resources[1],
246 plane_resources[2], plane_resources[3], color_space); 246 plane_resources[2], plane_resources[3], color_space);
247 } 247 }
248 248
249 } // namespace cc 249 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698