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

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

Issue 1881883002: SRGB_EXT is a valid format of texture in WebGL1.0 and ES2.0 contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert test 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 extensions.Contains("GL_EXT_sRGB")) || 604 extensions.Contains("GL_EXT_sRGB")) ||
605 gfx::HasDesktopGLFeatures()) { 605 gfx::HasDesktopGLFeatures()) {
606 AddExtensionString("GL_EXT_sRGB"); 606 AddExtensionString("GL_EXT_sRGB");
607 validators_.texture_internal_format.AddValue(GL_SRGB_EXT); 607 validators_.texture_internal_format.AddValue(GL_SRGB_EXT);
608 validators_.texture_internal_format.AddValue(GL_SRGB_ALPHA_EXT); 608 validators_.texture_internal_format.AddValue(GL_SRGB_ALPHA_EXT);
609 validators_.texture_format.AddValue(GL_SRGB_EXT); 609 validators_.texture_format.AddValue(GL_SRGB_EXT);
610 validators_.texture_format.AddValue(GL_SRGB_ALPHA_EXT); 610 validators_.texture_format.AddValue(GL_SRGB_ALPHA_EXT);
611 validators_.render_buffer_format.AddValue(GL_SRGB8_ALPHA8_EXT); 611 validators_.render_buffer_format.AddValue(GL_SRGB8_ALPHA8_EXT);
612 validators_.frame_buffer_parameter.AddValue( 612 validators_.frame_buffer_parameter.AddValue(
613 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT); 613 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT);
614 validators_.texture_unsized_internal_format.AddValue(GL_SRGB_EXT);
yunchao 2016/04/12 07:21:34 This ext has been added into texture_internal_form
qiankun 2016/04/12 11:01:50 GLES extension spec can be found at https://www.kh
614 validators_.texture_unsized_internal_format.AddValue(GL_SRGB_ALPHA_EXT); 615 validators_.texture_unsized_internal_format.AddValue(GL_SRGB_ALPHA_EXT);
615 } 616 }
616 617
617 bool enable_texture_format_bgra8888 = false; 618 bool enable_texture_format_bgra8888 = false;
618 bool enable_read_format_bgra = false; 619 bool enable_read_format_bgra = false;
619 bool enable_render_buffer_bgra = false; 620 bool enable_render_buffer_bgra = false;
620 bool enable_immutable_texture_format_bgra_on_es3 = 621 bool enable_immutable_texture_format_bgra_on_es3 =
621 extensions.Contains("GL_APPLE_texture_format_BGRA8888"); 622 extensions.Contains("GL_APPLE_texture_format_BGRA8888");
622 623
623 // Check if we should allow GL_EXT_texture_format_BGRA8888 624 // Check if we should allow GL_EXT_texture_format_BGRA8888
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 if (pos == std::string::npos) { 1425 if (pos == std::string::npos) {
1425 extensions_ += (extensions_.empty() ? "" : " ") + str; 1426 extensions_ += (extensions_.empty() ? "" : " ") + str;
1426 } 1427 }
1427 } 1428 }
1428 1429
1429 FeatureInfo::~FeatureInfo() { 1430 FeatureInfo::~FeatureInfo() {
1430 } 1431 }
1431 1432
1432 } // namespace gles2 1433 } // namespace gles2
1433 } // namespace gpu 1434 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698