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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 rect.size(), | 87 rect.size(), |
88 rect, | 88 rect, |
89 rect, | 89 rect, |
90 false, | 90 false, |
91 1, | 91 1, |
92 SkXfermode::kSrcOver_Mode, | 92 SkXfermode::kSrcOver_Mode, |
93 0); | 93 0); |
94 | 94 |
95 CheckerboardDrawQuad* checkerboard_quad = | 95 CheckerboardDrawQuad* checkerboard_quad = |
96 this->CreateAndAppendDrawQuad<CheckerboardDrawQuad>(); | 96 this->CreateAndAppendDrawQuad<CheckerboardDrawQuad>(); |
97 checkerboard_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED); | 97 checkerboard_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED, 1.f); |
98 | 98 |
99 DebugBorderDrawQuad* debug_border_quad = | 99 DebugBorderDrawQuad* debug_border_quad = |
100 this->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); | 100 this->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); |
101 debug_border_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED, 1); | 101 debug_border_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED, 1); |
102 | 102 |
103 IOSurfaceDrawQuad* io_surface_quad = | 103 IOSurfaceDrawQuad* io_surface_quad = |
104 this->CreateAndAppendDrawQuad<IOSurfaceDrawQuad>(); | 104 this->CreateAndAppendDrawQuad<IOSurfaceDrawQuad>(); |
105 io_surface_quad->SetNew(shared_state, | 105 io_surface_quad->SetNew(shared_state, |
106 rect, | 106 rect, |
107 opaque_rect, | 107 opaque_rect, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601; | 244 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601; |
245 YUVVideoDrawQuad* yuv_quad = | 245 YUVVideoDrawQuad* yuv_quad = |
246 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); | 246 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); |
247 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, | 247 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, |
248 gfx::RectF(0, 0, 100, 100), gfx::Size(100, 100), | 248 gfx::RectF(0, 0, 100, 100), gfx::Size(100, 100), |
249 plane_resources[0], plane_resources[1], plane_resources[2], | 249 plane_resources[0], plane_resources[1], plane_resources[2], |
250 plane_resources[3], color_space); | 250 plane_resources[3], color_space); |
251 } | 251 } |
252 | 252 |
253 } // namespace cc | 253 } // namespace cc |
OLD | NEW |