Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 2122573003: media: replace LUMINANCE_F16 by RG_88 for 9/10-bit h264 videos Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698