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 EXPECT_PROGRAM_VALID( | 178 EXPECT_PROGRAM_VALID( |
179 renderer()->GetTileProgramSwizzleAA(precision, sampler)); | 179 renderer()->GetTileProgramSwizzleAA(precision, sampler)); |
180 for (int j = 0; j < 2; j++) { | 180 for (int j = 0; j < 2; j++) { |
181 for (int k = 0; k < 2; k++) { | 181 for (int k = 0; k < 2; k++) { |
182 for (int l = 0; l < 2; l++) { | 182 for (int l = 0; l < 2; l++) { |
183 EXPECT_PROGRAM_VALID( | 183 EXPECT_PROGRAM_VALID( |
184 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); | 184 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); |
185 } | 185 } |
186 } | 186 } |
187 } | 187 } |
| 188 EXPECT_PROGRAM_VALID(renderer()->GetVideoYProgram(precision, sampler)); |
188 } | 189 } |
189 | 190 |
190 void TestShadersWithMasks(TexCoordPrecision precision, | 191 void TestShadersWithMasks(TexCoordPrecision precision, |
191 SamplerType sampler, | 192 SamplerType sampler, |
192 BlendMode blend_mode, | 193 BlendMode blend_mode, |
193 bool mask_for_background) { | 194 bool mask_for_background) { |
194 if (!context_provider()->ContextCapabilities().egl_image_external && | 195 if (!context_provider()->ContextCapabilities().egl_image_external && |
195 sampler == SAMPLER_TYPE_EXTERNAL_OES) { | 196 sampler == SAMPLER_TYPE_EXTERNAL_OES) { |
196 // This will likely be hit in tests due to usage of osmesa. | 197 // This will likely be hit in tests due to usage of osmesa. |
197 return; | 198 return; |
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 renderer_->SetVisible(true); | 1948 renderer_->SetVisible(true); |
1948 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1949 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1949 | 1950 |
1950 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 1951 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
1951 renderer_->SetVisible(false); | 1952 renderer_->SetVisible(false); |
1952 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1953 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1953 } | 1954 } |
1954 | 1955 |
1955 } // namespace | 1956 } // namespace |
1956 } // namespace cc | 1957 } // namespace cc |
OLD | NEW |