| 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 validators_.pixel_store.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); | 684 validators_.pixel_store.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); |
| 685 validators_.g_l_state.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); | 685 validators_.g_l_state.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); |
| 686 } | 686 } |
| 687 | 687 |
| 688 if (extensions.Contains("GL_ANGLE_texture_usage")) { | 688 if (extensions.Contains("GL_ANGLE_texture_usage")) { |
| 689 feature_flags_.angle_texture_usage = true; | 689 feature_flags_.angle_texture_usage = true; |
| 690 AddExtensionString("GL_ANGLE_texture_usage"); | 690 AddExtensionString("GL_ANGLE_texture_usage"); |
| 691 validators_.texture_parameter.AddValue(GL_TEXTURE_USAGE_ANGLE); | 691 validators_.texture_parameter.AddValue(GL_TEXTURE_USAGE_ANGLE); |
| 692 } | 692 } |
| 693 | 693 |
| 694 if (extensions.Contains("GL_EXT_texture_storage") || | 694 if (extensions.Contains("GL_EXT_texture_storage")) { |
| 695 extensions.Contains("GL_ARB_texture_storage") || | |
| 696 is_es3) { | |
| 697 feature_flags_.ext_texture_storage = true; | 695 feature_flags_.ext_texture_storage = true; |
| 698 AddExtensionString("GL_EXT_texture_storage"); | 696 AddExtensionString("GL_EXT_texture_storage"); |
| 699 validators_.texture_parameter.AddValue(GL_TEXTURE_IMMUTABLE_FORMAT_EXT); | 697 validators_.texture_parameter.AddValue(GL_TEXTURE_IMMUTABLE_FORMAT_EXT); |
| 700 if (enable_texture_format_bgra8888) | 698 if (enable_texture_format_bgra8888) |
| 701 validators_.texture_internal_format_storage.AddValue(GL_BGRA8_EXT); | 699 validators_.texture_internal_format_storage.AddValue(GL_BGRA8_EXT); |
| 702 if (enable_texture_float) { | 700 if (enable_texture_float) { |
| 703 validators_.texture_internal_format_storage.AddValue(GL_RGBA32F_EXT); | 701 validators_.texture_internal_format_storage.AddValue(GL_RGBA32F_EXT); |
| 704 validators_.texture_internal_format_storage.AddValue(GL_RGB32F_EXT); | 702 validators_.texture_internal_format_storage.AddValue(GL_RGB32F_EXT); |
| 705 validators_.texture_internal_format_storage.AddValue(GL_ALPHA32F_EXT); | 703 validators_.texture_internal_format_storage.AddValue(GL_ALPHA32F_EXT); |
| 706 validators_.texture_internal_format_storage.AddValue( | 704 validators_.texture_internal_format_storage.AddValue( |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 if (pos == std::string::npos) { | 844 if (pos == std::string::npos) { |
| 847 extensions_ += (extensions_.empty() ? "" : " ") + str; | 845 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 848 } | 846 } |
| 849 } | 847 } |
| 850 | 848 |
| 851 FeatureInfo::~FeatureInfo() { | 849 FeatureInfo::~FeatureInfo() { |
| 852 } | 850 } |
| 853 | 851 |
| 854 } // namespace gles2 | 852 } // namespace gles2 |
| 855 } // namespace gpu | 853 } // namespace gpu |
| OLD | NEW |