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

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: Make feature_info_unittest.cc compile. 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 GL_SRGB_EXT)); 285 GL_SRGB_EXT));
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));
no sievers 2015/08/26 19:20:44 EXPECT_FALSE(info_->feature_flags().chromium_image
Daniele Castagna 2015/08/26 19:41:15 Done.
296 } 296 }
297 297
298 TEST_P(FeatureInfoTest, InitializeWithANGLE) { 298 TEST_P(FeatureInfoTest, InitializeWithANGLE) {
299 SetupInitExpectationsWithGLVersion("", kGLRendererStringANGLE, ""); 299 SetupInitExpectationsWithGLVersion("", kGLRendererStringANGLE, "");
300 EXPECT_TRUE(info_->gl_version_info().is_angle); 300 EXPECT_TRUE(info_->gl_version_info().is_angle);
301 } 301 }
302 302
303 TEST_P(FeatureInfoTest, InitializeNPOTExtensionGLES) { 303 TEST_P(FeatureInfoTest, InitializeNPOTExtensionGLES) {
304 SetupInitExpectations("GL_OES_texture_npot"); 304 SetupInitExpectations("GL_OES_texture_npot");
305 EXPECT_THAT(info_->extensions(), HasSubstr("GL_OES_texture_npot")); 305 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)); 1356 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT));
1357 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); 1357 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT));
1358 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); 1358 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT));
1359 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); 1359 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT));
1360 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); 1360 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT));
1361 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); 1361 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT));
1362 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); 1362 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT));
1363 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); 1363 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT));
1364 } 1364 }
1365 1365
1366 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) {
1367 SetupInitExpectations("GL_APPLE_ycbcr_422");
1368 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422);
1369 }
1370
1366 } // namespace gles2 1371 } // namespace gles2
1367 } // namespace gpu 1372 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698