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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 998 |
999 if (gl_version_info_->is_es3 || | 999 if (gl_version_info_->is_es3 || |
1000 extensions.Contains("GL_ARB_sampler_objects")) { | 1000 extensions.Contains("GL_ARB_sampler_objects")) { |
1001 feature_flags_.enable_samplers = true; | 1001 feature_flags_.enable_samplers = true; |
1002 // TODO(dsinclair): Add AddExtensionString("GL_CHROMIUM_sampler_objects") | 1002 // TODO(dsinclair): Add AddExtensionString("GL_CHROMIUM_sampler_objects") |
1003 // when available. | 1003 // when available. |
1004 } | 1004 } |
1005 | 1005 |
1006 if ((gl_version_info_->is_es3 || | 1006 if ((gl_version_info_->is_es3 || |
1007 extensions.Contains("GL_EXT_discard_framebuffer")) && | 1007 extensions.Contains("GL_EXT_discard_framebuffer")) && |
1008 !workarounds_.disable_ext_discard_framebuffer) { | 1008 !workarounds_.disable_discard_framebuffer) { |
1009 // DiscardFramebufferEXT is automatically bound to InvalidateFramebuffer. | 1009 // DiscardFramebufferEXT is automatically bound to InvalidateFramebuffer. |
1010 AddExtensionString("GL_EXT_discard_framebuffer"); | 1010 AddExtensionString("GL_EXT_discard_framebuffer"); |
1011 feature_flags_.ext_discard_framebuffer = true; | 1011 feature_flags_.ext_discard_framebuffer = true; |
1012 } | 1012 } |
1013 | 1013 |
1014 if (ui_gl_fence_works) { | 1014 if (ui_gl_fence_works) { |
1015 AddExtensionString("GL_CHROMIUM_sync_query"); | 1015 AddExtensionString("GL_CHROMIUM_sync_query"); |
1016 feature_flags_.chromium_sync_query = true; | 1016 feature_flags_.chromium_sync_query = true; |
1017 } | 1017 } |
1018 | 1018 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 if (pos == std::string::npos) { | 1129 if (pos == std::string::npos) { |
1130 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1130 extensions_ += (extensions_.empty() ? "" : " ") + str; |
1131 } | 1131 } |
1132 } | 1132 } |
1133 | 1133 |
1134 FeatureInfo::~FeatureInfo() { | 1134 FeatureInfo::~FeatureInfo() { |
1135 } | 1135 } |
1136 | 1136 |
1137 } // namespace gles2 | 1137 } // namespace gles2 |
1138 } // namespace gpu | 1138 } // namespace gpu |
OLD | NEW |