Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); | |
|
Ken Russell (switch to Gerrit)
2016/04/24 15:57:22
One point. This should only be added for ES 2.0 +
Zhenyao Mo
2016/04/25 18:00:00
Right. This is an issue existing before this CL.
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |