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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 EXPECT_PROGRAM_VALID(
184 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l)); 184 renderer()->GetVideoYUVProgram(precision, sampler, j, k, l));
185 } 185 }
186 } 186 }
187 } 187 }
188 EXPECT_PROGRAM_VALID(renderer()->GetVideoYProgram(precision, sampler));
188 } 189 }
189 190
190 void TestShadersWithMasks(TexCoordPrecision precision, 191 void TestShadersWithMasks(TexCoordPrecision precision,
191 SamplerType sampler, 192 SamplerType sampler,
192 BlendMode blend_mode, 193 BlendMode blend_mode,
193 bool mask_for_background) { 194 bool mask_for_background) {
194 if (!context_provider()->ContextCapabilities().egl_image_external && 195 if (!context_provider()->ContextCapabilities().egl_image_external &&
195 sampler == SAMPLER_TYPE_EXTERNAL_OES) { 196 sampler == SAMPLER_TYPE_EXTERNAL_OES) {
196 // This will likely be hit in tests due to usage of osmesa. 197 // This will likely be hit in tests due to usage of osmesa.
197 return; 198 return;
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 renderer_->SetVisible(true); 1948 renderer_->SetVisible(true);
1948 Mock::VerifyAndClearExpectations(context_support_ptr_); 1949 Mock::VerifyAndClearExpectations(context_support_ptr_);
1949 1950
1950 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); 1951 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true));
1951 renderer_->SetVisible(false); 1952 renderer_->SetVisible(false);
1952 Mock::VerifyAndClearExpectations(context_support_ptr_); 1953 Mock::VerifyAndClearExpectations(context_support_ptr_);
1953 } 1954 }
1954 1955
1955 } // namespace 1956 } // namespace
1956 } // namespace cc 1957 } // 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