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 <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 464 bool enable_immutable_texture_format_bgra_on_es3 = | 464 bool enable_immutable_texture_format_bgra_on_es3 = |
| 465 extensions.Contains("GL_APPLE_texture_format_BGRA8888"); | 465 extensions.Contains("GL_APPLE_texture_format_BGRA8888"); |
| 466 | 466 |
| 467 // Check if we should allow GL_EXT_texture_format_BGRA8888 | 467 // Check if we should allow GL_EXT_texture_format_BGRA8888 |
| 468 if (extensions.Contains("GL_EXT_texture_format_BGRA8888") || | 468 if (extensions.Contains("GL_EXT_texture_format_BGRA8888") || |
| 469 enable_immutable_texture_format_bgra_on_es3 || | 469 enable_immutable_texture_format_bgra_on_es3 || |
| 470 extensions.Contains("GL_EXT_bgra")) { | 470 extensions.Contains("GL_EXT_bgra")) { |
| 471 enable_texture_format_bgra8888 = true; | 471 enable_texture_format_bgra8888 = true; |
| 472 } | 472 } |
| 473 | 473 |
| 474 if (extensions.Contains("GL_EXT_bgra")) { | 474 if (extensions.Contains("GL_EXT_texture_format_BGRA8888")) { |
|
Ken Russell (switch to Gerrit)
2015/02/21 01:22:28
Something looks wrong with this change. GL_EXT_tex
| |
| 475 enable_render_buffer_bgra = true; | 475 enable_render_buffer_bgra = true; |
| 476 } | 476 } |
| 477 | 477 |
| 478 if (extensions.Contains("GL_EXT_read_format_bgra") || | 478 if (extensions.Contains("GL_EXT_read_format_bgra") || |
| 479 extensions.Contains("GL_EXT_bgra")) { | 479 extensions.Contains("GL_EXT_bgra")) { |
| 480 enable_read_format_bgra = true; | 480 enable_read_format_bgra = true; |
| 481 } | 481 } |
| 482 | 482 |
| 483 if (enable_texture_format_bgra8888) { | 483 if (enable_texture_format_bgra8888) { |
| 484 feature_flags_.ext_texture_format_bgra8888 = true; | 484 feature_flags_.ext_texture_format_bgra8888 = true; |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1044 if (pos == std::string::npos) { | 1044 if (pos == std::string::npos) { |
| 1045 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1045 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1046 } | 1046 } |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 FeatureInfo::~FeatureInfo() { | 1049 FeatureInfo::~FeatureInfo() { |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 } // namespace gles2 | 1052 } // namespace gles2 |
| 1053 } // namespace gpu | 1053 } // namespace gpu |
| OLD | NEW |