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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); | 173 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); |
174 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); | 174 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); |
175 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); | 175 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); |
176 EXPECT_PROGRAM_VALID( | 176 EXPECT_PROGRAM_VALID( |
177 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); | 177 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); |
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 for (int m = 0; m < FragmentShaderYUVVideo::LAST_HIGHBIT_TEXTURE; |
184 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); | 184 m++) { |
| 185 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram( |
| 186 precision, sampler, j, k, l, |
| 187 static_cast<FragmentShaderYUVVideo::HighbitTexture>(m))); |
| 188 } |
185 } | 189 } |
186 } | 190 } |
187 } | 191 } |
188 } | 192 } |
189 | 193 |
190 void TestShadersWithMasks(TexCoordPrecision precision, | 194 void TestShadersWithMasks(TexCoordPrecision precision, |
191 SamplerType sampler, | 195 SamplerType sampler, |
192 BlendMode blend_mode, | 196 BlendMode blend_mode, |
193 bool mask_for_background) { | 197 bool mask_for_background) { |
194 if (!context_provider()->ContextCapabilities().egl_image_external && | 198 if (!context_provider()->ContextCapabilities().egl_image_external && |
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 renderer_->SetVisible(true); | 1951 renderer_->SetVisible(true); |
1948 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1952 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1949 | 1953 |
1950 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 1954 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
1951 renderer_->SetVisible(false); | 1955 renderer_->SetVisible(false); |
1952 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1956 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1953 } | 1957 } |
1954 | 1958 |
1955 } // namespace | 1959 } // namespace |
1956 } // namespace cc | 1960 } // namespace cc |
OLD | NEW |