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

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

Issue 1852923002: Enable sampling from DXGI NV12 formats in GLRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); 169 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler));
170 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); 170 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler));
171 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); 171 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler));
172 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); 172 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler));
173 EXPECT_PROGRAM_VALID( 173 EXPECT_PROGRAM_VALID(
174 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); 174 renderer()->GetTileProgramSwizzleOpaque(precision, sampler));
175 EXPECT_PROGRAM_VALID( 175 EXPECT_PROGRAM_VALID(
176 renderer()->GetTileProgramSwizzleAA(precision, sampler)); 176 renderer()->GetTileProgramSwizzleAA(precision, sampler));
177 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision, sampler)); 177 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision, sampler));
178 EXPECT_PROGRAM_VALID(renderer()->GetVideoNV12Program(precision, sampler));
178 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision, sampler)); 179 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision, sampler));
179 } 180 }
180 181
181 void TestShadersWithMasks(TexCoordPrecision precision, 182 void TestShadersWithMasks(TexCoordPrecision precision,
182 SamplerType sampler, 183 SamplerType sampler,
183 BlendMode blend_mode, 184 BlendMode blend_mode,
184 bool mask_for_background) { 185 bool mask_for_background) {
185 if (!renderer()->Capabilities().using_egl_image && 186 if (!renderer()->Capabilities().using_egl_image &&
186 sampler == SAMPLER_TYPE_EXTERNAL_OES) { 187 sampler == SAMPLER_TYPE_EXTERNAL_OES) {
187 // This will likely be hit in tests due to usage of osmesa. 188 // This will likely be hit in tests due to usage of osmesa.
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 EXPECT_CALL(overlay_scheduler, 2235 EXPECT_CALL(overlay_scheduler,
2235 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, 2236 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect,
2236 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); 2237 BoundingRect(uv_top_left, uv_bottom_right))).Times(1);
2237 2238
2238 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect, 2239 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect,
2239 viewport_rect, false); 2240 viewport_rect, false);
2240 } 2241 }
2241 2242
2242 } // namespace 2243 } // namespace
2243 } // namespace cc 2244 } // 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