| 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 "cc/checkerboard_draw_quad.h" | 7 #include "cc/checkerboard_draw_quad.h" |
| 8 #include "cc/debug_border_draw_quad.h" | 8 #include "cc/debug_border_draw_quad.h" |
| 9 #include "cc/io_surface_draw_quad.h" | 9 #include "cc/io_surface_draw_quad.h" |
| 10 #include "cc/render_pass_draw_quad.h" | 10 #include "cc/render_pass_draw_quad.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 gfx::Transform()); | 96 gfx::Transform()); |
| 97 AppendQuad(stream_video_quad.PassAs<DrawQuad>()); | 97 AppendQuad(stream_video_quad.PassAs<DrawQuad>()); |
| 98 | 98 |
| 99 scoped_ptr<cc::TextureDrawQuad> texture_quad = | 99 scoped_ptr<cc::TextureDrawQuad> texture_quad = |
| 100 cc::TextureDrawQuad::Create(); | 100 cc::TextureDrawQuad::Create(); |
| 101 texture_quad->SetNew(shared_state.get(), | 101 texture_quad->SetNew(shared_state.get(), |
| 102 rect, | 102 rect, |
| 103 opaque_rect, | 103 opaque_rect, |
| 104 texture_resource, | 104 texture_resource, |
| 105 false, | 105 false, |
| 106 rect, | 106 gfx::PointF(0.f, 0.f), |
| 107 gfx::PointF(1.f, 1.f), |
| 107 vertex_opacity, | 108 vertex_opacity, |
| 108 false); | 109 false); |
| 109 AppendQuad(texture_quad.PassAs<DrawQuad>()); | 110 AppendQuad(texture_quad.PassAs<DrawQuad>()); |
| 110 | 111 |
| 111 scoped_ptr<cc::TileDrawQuad> scaled_tile_quad = | 112 scoped_ptr<cc::TileDrawQuad> scaled_tile_quad = |
| 112 cc::TileDrawQuad::Create(); | 113 cc::TileDrawQuad::Create(); |
| 113 scaled_tile_quad->SetNew(shared_state.get(), | 114 scaled_tile_quad->SetNew(shared_state.get(), |
| 114 rect, | 115 rect, |
| 115 opaque_rect, | 116 opaque_rect, |
| 116 texture_resource, | 117 texture_resource, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 planes[0], | 178 planes[0], |
| 178 planes[1], | 179 planes[1], |
| 179 planes[2]); | 180 planes[2]); |
| 180 AppendQuad(yuv_quad.PassAs<DrawQuad>()); | 181 AppendQuad(yuv_quad.PassAs<DrawQuad>()); |
| 181 | 182 |
| 182 AppendSharedQuadState(transformed_state.Pass()); | 183 AppendSharedQuadState(transformed_state.Pass()); |
| 183 AppendSharedQuadState(shared_state.Pass()); | 184 AppendSharedQuadState(shared_state.Pass()); |
| 184 } | 185 } |
| 185 | 186 |
| 186 } // namespace cc | 187 } // namespace cc |
| OLD | NEW |