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

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

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 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
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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 feature_flags_.angle_client_arrays = 1397 feature_flags_.angle_client_arrays =
1398 extensions.Contains("GL_ANGLE_client_arrays"); 1398 extensions.Contains("GL_ANGLE_client_arrays");
1399 feature_flags_.angle_request_extension = 1399 feature_flags_.angle_request_extension =
1400 extensions.Contains("GL_ANGLE_request_extension"); 1400 extensions.Contains("GL_ANGLE_request_extension");
1401 feature_flags_.ext_debug_marker = extensions.Contains("GL_EXT_debug_marker"); 1401 feature_flags_.ext_debug_marker = extensions.Contains("GL_EXT_debug_marker");
1402 feature_flags_.arb_robustness = extensions.Contains("GL_ARB_robustness"); 1402 feature_flags_.arb_robustness = extensions.Contains("GL_ARB_robustness");
1403 feature_flags_.khr_robustness = extensions.Contains("GL_KHR_robustness"); 1403 feature_flags_.khr_robustness = extensions.Contains("GL_KHR_robustness");
1404 feature_flags_.ext_robustness = extensions.Contains("GL_EXT_robustness"); 1404 feature_flags_.ext_robustness = extensions.Contains("GL_EXT_robustness");
1405 feature_flags_.chromium_texture_filtering_hint = 1405 feature_flags_.chromium_texture_filtering_hint =
1406 extensions.Contains("GL_CHROMIUM_texture_filtering_hint"); 1406 extensions.Contains("GL_CHROMIUM_texture_filtering_hint");
1407
1408 if (!IsWebGLContext()) {
1409 AddExtensionString("GL_CHROMIUM_texture_buffer");
1410 feature_flags_.chromium_texture_buffer = true;
1411 validators_.texture_parameter.AddValue(GL_TEXTURE_BUFFER_USAGE_CHROMIUM);
1412 }
1407 } 1413 }
1408 1414
1409 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( 1415 void FeatureInfo::InitializeFloatAndHalfFloatFeatures(
1410 const StringSet& extensions) { 1416 const StringSet& extensions) {
1411 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, 1417 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float,
1412 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear 1418 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear
1413 bool enable_texture_float = false; 1419 bool enable_texture_float = false;
1414 bool enable_texture_float_linear = false; 1420 bool enable_texture_float_linear = false;
1415 bool enable_texture_half_float = false; 1421 bool enable_texture_half_float = false;
1416 bool enable_texture_half_float_linear = false; 1422 bool enable_texture_half_float_linear = false;
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 if (pos == std::string::npos) { 1755 if (pos == std::string::npos) {
1750 extensions_ += (extensions_.empty() ? "" : " ") + str; 1756 extensions_ += (extensions_.empty() ? "" : " ") + str;
1751 } 1757 }
1752 } 1758 }
1753 1759
1754 FeatureInfo::~FeatureInfo() { 1760 FeatureInfo::~FeatureInfo() {
1755 } 1761 }
1756 1762
1757 } // namespace gles2 1763 } // namespace gles2
1758 } // namespace gpu 1764 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698