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

Side by Side Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 1305153005: Add CHROMIUM_ycbcr_422_image extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sievers' comments. Created 5 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "gpu/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "gpu/command_buffer/service/gpu_service_test.h" 10 #include "gpu/command_buffer/service/gpu_service_test.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 EXPECT_FALSE(info_->validators()->texture_format.IsValid( 286 EXPECT_FALSE(info_->validators()->texture_format.IsValid(
287 GL_SRGB_ALPHA_EXT)); 287 GL_SRGB_ALPHA_EXT));
288 EXPECT_FALSE(info_->validators()->texture_internal_format.IsValid( 288 EXPECT_FALSE(info_->validators()->texture_internal_format.IsValid(
289 GL_SRGB_EXT)); 289 GL_SRGB_EXT));
290 EXPECT_FALSE(info_->validators()->texture_internal_format.IsValid( 290 EXPECT_FALSE(info_->validators()->texture_internal_format.IsValid(
291 GL_SRGB_ALPHA_EXT)); 291 GL_SRGB_ALPHA_EXT));
292 EXPECT_FALSE(info_->validators()->render_buffer_format.IsValid( 292 EXPECT_FALSE(info_->validators()->render_buffer_format.IsValid(
293 GL_SRGB8_ALPHA8_EXT)); 293 GL_SRGB8_ALPHA8_EXT));
294 EXPECT_FALSE(info_->validators()->frame_buffer_parameter.IsValid( 294 EXPECT_FALSE(info_->validators()->frame_buffer_parameter.IsValid(
295 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT)); 295 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT));
296 EXPECT_FALSE(info_->feature_flags().chromium_image_ycbcr_422);
296 } 297 }
297 298
298 TEST_P(FeatureInfoTest, InitializeWithANGLE) { 299 TEST_P(FeatureInfoTest, InitializeWithANGLE) {
299 SetupInitExpectationsWithGLVersion("", kGLRendererStringANGLE, ""); 300 SetupInitExpectationsWithGLVersion("", kGLRendererStringANGLE, "");
300 EXPECT_TRUE(info_->gl_version_info().is_angle); 301 EXPECT_TRUE(info_->gl_version_info().is_angle);
301 } 302 }
302 303
303 TEST_P(FeatureInfoTest, InitializeNPOTExtensionGLES) { 304 TEST_P(FeatureInfoTest, InitializeNPOTExtensionGLES) {
304 SetupInitExpectations("GL_OES_texture_npot"); 305 SetupInitExpectations("GL_OES_texture_npot");
305 EXPECT_THAT(info_->extensions(), HasSubstr("GL_OES_texture_npot")); 306 EXPECT_THAT(info_->extensions(), HasSubstr("GL_OES_texture_npot"));
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); 1357 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT));
1357 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); 1358 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT));
1358 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); 1359 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT));
1359 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); 1360 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT));
1360 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); 1361 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT));
1361 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); 1362 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT));
1362 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); 1363 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT));
1363 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); 1364 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT));
1364 } 1365 }
1365 1366
1367 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) {
1368 SetupInitExpectations("GL_APPLE_ycbcr_422");
1369 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422);
1370 }
1371
1366 } // namespace gles2 1372 } // namespace gles2
1367 } // namespace gpu 1373 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698