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 #include <vector> | 10 #include <vector> |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, false))); | 178 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, false))); |
179 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 179 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
180 ProgramKey::Tile(precision, sampler, USE_AA, NO_SWIZZLE, false))); | 180 ProgramKey::Tile(precision, sampler, USE_AA, NO_SWIZZLE, false))); |
181 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 181 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
182 ProgramKey::Tile(precision, sampler, USE_AA, DO_SWIZZLE, false))); | 182 ProgramKey::Tile(precision, sampler, USE_AA, DO_SWIZZLE, false))); |
183 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 183 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
184 ProgramKey::Tile(precision, sampler, NO_AA, NO_SWIZZLE, true))); | 184 ProgramKey::Tile(precision, sampler, NO_AA, NO_SWIZZLE, true))); |
185 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 185 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
186 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, true))); | 186 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, true))); |
187 | 187 |
| 188 // Iterate over alpha plane, nv12, and color_lut parameters. |
188 for (int j = 0; j < 2; j++) { | 189 for (int j = 0; j < 2; j++) { |
189 for (int k = 0; k < 2; k++) { | 190 for (int k = 0; k < 2; k++) { |
190 for (int l = 0; l < 2; l++) { | 191 for (int l = 0; l < 2; l++) { |
191 EXPECT_PROGRAM_VALID( | 192 const Program* program = renderer()->GetProgram( |
192 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); | 193 ProgramKey::YUVVideo(precision, sampler, j, k, l)); |
| 194 EXPECT_PROGRAM_VALID(program); |
193 } | 195 } |
194 } | 196 } |
195 } | 197 } |
196 } | 198 } |
197 | 199 |
198 void TestShadersWithMasks(TexCoordPrecision precision, | 200 void TestShadersWithMasks(TexCoordPrecision precision, |
199 SamplerType sampler, | 201 SamplerType sampler, |
200 BlendMode blend_mode, | 202 BlendMode blend_mode, |
201 bool mask_for_background) { | 203 bool mask_for_background) { |
202 if (!context_provider()->ContextCapabilities().egl_image_external && | 204 if (!context_provider()->ContextCapabilities().egl_image_external && |
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1973 renderer_->SetVisible(true); | 1975 renderer_->SetVisible(true); |
1974 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1976 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1975 | 1977 |
1976 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 1978 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
1977 renderer_->SetVisible(false); | 1979 renderer_->SetVisible(false); |
1978 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1980 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1979 } | 1981 } |
1980 | 1982 |
1981 } // namespace | 1983 } // namespace |
1982 } // namespace cc | 1984 } // namespace cc |
OLD | NEW |