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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 185 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
186 ProgramKey::Tile(precision, sampler, NO_AA, NO_SWIZZLE, true))); | 186 ProgramKey::Tile(precision, sampler, NO_AA, NO_SWIZZLE, true))); |
187 EXPECT_PROGRAM_VALID(renderer()->GetProgram( | 187 EXPECT_PROGRAM_VALID(renderer()->GetProgram( |
188 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, true))); | 188 ProgramKey::Tile(precision, sampler, NO_AA, DO_SWIZZLE, true))); |
189 | 189 |
190 // Iterate over alpha plane, nv12, and color_lut parameters. | 190 // Iterate over alpha plane, nv12, and color_lut parameters. |
191 UVTextureMode uv_modes[2] = {UV_TEXTURE_MODE_UV, UV_TEXTURE_MODE_U_V}; | 191 UVTextureMode uv_modes[2] = {UV_TEXTURE_MODE_UV, UV_TEXTURE_MODE_U_V}; |
192 YUVAlphaTextureMode a_modes[2] = {YUV_NO_ALPHA_TEXTURE, | 192 YUVAlphaTextureMode a_modes[2] = {YUV_NO_ALPHA_TEXTURE, |
193 YUV_HAS_ALPHA_TEXTURE}; | 193 YUV_HAS_ALPHA_TEXTURE}; |
194 ColorConversionMode c_modes[2] = {COLOR_CONVERSION_MODE_NONE, | 194 ColorConversionMode c_modes[2] = {COLOR_CONVERSION_MODE_NONE, |
195 COLOR_CONVERSION_MODE_LUT_FROM_YUV}; | 195 COLOR_CONVERSION_MODE_LUT}; |
196 for (int j = 0; j < 2; j++) { | 196 for (int j = 0; j < 2; j++) { |
197 for (int k = 0; k < 2; k++) { | 197 for (int k = 0; k < 2; k++) { |
198 for (int l = 0; l < 2; l++) { | 198 for (int l = 0; l < 2; l++) { |
199 const Program* program = renderer()->GetProgram(ProgramKey::YUVVideo( | 199 const Program* program = renderer()->GetProgram(ProgramKey::YUVVideo( |
200 precision, sampler, a_modes[j], uv_modes[k], c_modes[l])); | 200 precision, sampler, a_modes[j], uv_modes[k], c_modes[l])); |
201 EXPECT_PROGRAM_VALID(program); | 201 EXPECT_PROGRAM_VALID(program); |
202 } | 202 } |
203 } | 203 } |
204 } | 204 } |
205 } | 205 } |
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 renderer_->SetVisible(true); | 1984 renderer_->SetVisible(true); |
1985 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1985 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1986 | 1986 |
1987 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 1987 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
1988 renderer_->SetVisible(false); | 1988 renderer_->SetVisible(false); |
1989 Mock::VerifyAndClearExpectations(context_support_ptr_); | 1989 Mock::VerifyAndClearExpectations(context_support_ptr_); |
1990 } | 1990 } |
1991 | 1991 |
1992 } // namespace | 1992 } // namespace |
1993 } // namespace cc | 1993 } // namespace cc |
OLD | NEW |