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/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); | 177 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); |
178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); | 178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); |
179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); | 179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); |
180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); | 180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); |
181 EXPECT_PROGRAM_VALID( | 181 EXPECT_PROGRAM_VALID( |
182 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); | 182 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); |
183 EXPECT_PROGRAM_VALID( | 183 EXPECT_PROGRAM_VALID( |
184 renderer()->GetTileProgramSwizzleAA(precision, sampler)); | 184 renderer()->GetTileProgramSwizzleAA(precision, sampler)); |
185 for (int j = 0; j < 2; j++) { | 185 for (int j = 0; j < 2; j++) { |
186 for (int k = 0; k < 2; k++) { | 186 for (int k = 0; k < 2; k++) { |
187 EXPECT_PROGRAM_VALID( | 187 for (int l = 0; l < 2; l++) { |
188 renderer()->GetVideoYUVProgram(precision, sampler, j, k)); | 188 EXPECT_PROGRAM_VALID( |
| 189 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); |
| 190 } |
189 } | 191 } |
190 } | 192 } |
191 } | 193 } |
192 | 194 |
193 void TestShadersWithMasks(TexCoordPrecision precision, | 195 void TestShadersWithMasks(TexCoordPrecision precision, |
194 SamplerType sampler, | 196 SamplerType sampler, |
195 BlendMode blend_mode, | 197 BlendMode blend_mode, |
196 bool mask_for_background) { | 198 bool mask_for_background) { |
197 if (!renderer()->Capabilities().using_egl_image && | 199 if (!renderer()->Capabilities().using_egl_image && |
198 sampler == SAMPLER_TYPE_EXTERNAL_OES) { | 200 sampler == SAMPLER_TYPE_EXTERNAL_OES) { |
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 EXPECT_CALL(*context, waitSyncToken(MatchesSyncToken(sync_token))).Times(1); | 2065 EXPECT_CALL(*context, waitSyncToken(MatchesSyncToken(sync_token))).Times(1); |
2064 EXPECT_CALL(overlay_scheduler, | 2066 EXPECT_CALL(overlay_scheduler, |
2065 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, | 2067 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, |
2066 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); | 2068 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); |
2067 | 2069 |
2068 DrawFrame(&renderer, viewport_rect); | 2070 DrawFrame(&renderer, viewport_rect); |
2069 } | 2071 } |
2070 | 2072 |
2071 } // namespace | 2073 } // namespace |
2072 } // namespace cc | 2074 } // namespace cc |
OLD | NEW |