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

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: add pixel tests for RG88 and resolve hubbe's comments 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
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 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); 178 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler));
179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); 179 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler));
180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); 180 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler));
181 EXPECT_PROGRAM_VALID( 181 EXPECT_PROGRAM_VALID(
182 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); 182 renderer()->GetTileProgramSwizzleOpaque(precision, sampler));
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 for (int m = 0; m < FragmentShaderYUVVideo::LAST_HIGHBIT_TEXTURE;
189 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); 189 m++) {
190 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(
191 precision, sampler, j, k, l,
192 static_cast<FragmentShaderYUVVideo::HighbitTexture>(m)));
193 }
190 } 194 }
191 } 195 }
192 } 196 }
193 } 197 }
194 198
195 void TestShadersWithMasks(TexCoordPrecision precision, 199 void TestShadersWithMasks(TexCoordPrecision precision,
196 SamplerType sampler, 200 SamplerType sampler,
197 BlendMode blend_mode, 201 BlendMode blend_mode,
198 bool mask_for_background) { 202 bool mask_for_background) {
199 if (!context_provider()->ContextCapabilities().egl_image_external && 203 if (!context_provider()->ContextCapabilities().egl_image_external &&
(...skipping 1885 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 renderer_->SetVisible(true); 2089 renderer_->SetVisible(true);
2086 Mock::VerifyAndClearExpectations(context_support_ptr_); 2090 Mock::VerifyAndClearExpectations(context_support_ptr_);
2087 2091
2088 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); 2092 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true));
2089 renderer_->SetVisible(false); 2093 renderer_->SetVisible(false);
2090 Mock::VerifyAndClearExpectations(context_support_ptr_); 2094 Mock::VerifyAndClearExpectations(context_support_ptr_);
2091 } 2095 }
2092 2096
2093 } // namespace 2097 } // namespace
2094 } // namespace cc 2098 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698