| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |