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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); | 178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); |
179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); | 179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); |
180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); | 180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); |
181 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); | 181 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); |
182 EXPECT_PROGRAM_VALID( | 182 EXPECT_PROGRAM_VALID( |
183 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); | 183 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); |
184 EXPECT_PROGRAM_VALID( | 184 EXPECT_PROGRAM_VALID( |
185 renderer()->GetTileProgramSwizzleAA(precision, sampler)); | 185 renderer()->GetTileProgramSwizzleAA(precision, sampler)); |
186 for (int j = 0; j < 2; j++) { | 186 for (int j = 0; j < 2; j++) { |
187 for (int k = 0; k < 2; k++) { | 187 for (int k = 0; k < 2; k++) { |
188 EXPECT_PROGRAM_VALID( | 188 for (int l = 0; l < 2; l++) { |
189 renderer()->GetVideoYUVProgram(precision, sampler, j, k)); | 189 EXPECT_PROGRAM_VALID( |
| 190 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); |
| 191 } |
190 } | 192 } |
191 } | 193 } |
192 } | 194 } |
193 | 195 |
194 void TestShadersWithMasks(TexCoordPrecision precision, | 196 void TestShadersWithMasks(TexCoordPrecision precision, |
195 SamplerType sampler, | 197 SamplerType sampler, |
196 BlendMode blend_mode, | 198 BlendMode blend_mode, |
197 bool mask_for_background) { | 199 bool mask_for_background) { |
198 if (!renderer()->Capabilities().using_egl_image && | 200 if (!renderer()->Capabilities().using_egl_image && |
199 sampler == SAMPLER_TYPE_EXTERNAL_OES) { | 201 sampler == SAMPLER_TYPE_EXTERNAL_OES) { |
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2143 TEST_F(GLRendererPartialSwapTest, PartialSwap) { | 2145 TEST_F(GLRendererPartialSwapTest, PartialSwap) { |
2144 RunTest(true); | 2146 RunTest(true); |
2145 } | 2147 } |
2146 | 2148 |
2147 TEST_F(GLRendererPartialSwapTest, NoPartialSwap) { | 2149 TEST_F(GLRendererPartialSwapTest, NoPartialSwap) { |
2148 RunTest(false); | 2150 RunTest(false); |
2149 } | 2151 } |
2150 | 2152 |
2151 } // namespace | 2153 } // namespace |
2152 } // namespace cc | 2154 } // namespace cc |
OLD | NEW |