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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 for (int l = 0; l < 2; l++) { | 187 for (int l = 0; l < 2; l++) { |
188 EXPECT_PROGRAM_VALID( | 188 EXPECT_PROGRAM_VALID( |
189 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); | 189 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } |
| 193 EXPECT_PROGRAM_VALID(renderer()->GetVideoYProgram(precision, sampler)); |
193 } | 194 } |
194 | 195 |
195 void TestShadersWithMasks(TexCoordPrecision precision, | 196 void TestShadersWithMasks(TexCoordPrecision precision, |
196 SamplerType sampler, | 197 SamplerType sampler, |
197 BlendMode blend_mode, | 198 BlendMode blend_mode, |
198 bool mask_for_background) { | 199 bool mask_for_background) { |
199 if (!context_provider()->ContextCapabilities().egl_image_external && | 200 if (!context_provider()->ContextCapabilities().egl_image_external && |
200 sampler == SAMPLER_TYPE_EXTERNAL_OES) { | 201 sampler == SAMPLER_TYPE_EXTERNAL_OES) { |
201 // This will likely be hit in tests due to usage of osmesa. | 202 // This will likely be hit in tests due to usage of osmesa. |
202 return; | 203 return; |
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 renderer_->SetVisible(true); | 2086 renderer_->SetVisible(true); |
2086 Mock::VerifyAndClearExpectations(context_support_ptr_); | 2087 Mock::VerifyAndClearExpectations(context_support_ptr_); |
2087 | 2088 |
2088 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 2089 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
2089 renderer_->SetVisible(false); | 2090 renderer_->SetVisible(false); |
2090 Mock::VerifyAndClearExpectations(context_support_ptr_); | 2091 Mock::VerifyAndClearExpectations(context_support_ptr_); |
2091 } | 2092 } |
2092 | 2093 |
2093 } // namespace | 2094 } // namespace |
2094 } // namespace cc | 2095 } // namespace cc |
OLD | NEW |