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

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

Issue 2758653003: Implement debug marker entry points in the passthrough command buffer. (Closed)
Patch Set: Created 3 years, 9 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 feature_flags_.angle_webgl_compatibility = 1353 feature_flags_.angle_webgl_compatibility =
1354 extensions.Contains("GL_ANGLE_webgl_compatibility"); 1354 extensions.Contains("GL_ANGLE_webgl_compatibility");
1355 feature_flags_.chromium_copy_texture = 1355 feature_flags_.chromium_copy_texture =
1356 extensions.Contains("GL_CHROMIUM_copy_texture"); 1356 extensions.Contains("GL_CHROMIUM_copy_texture");
1357 feature_flags_.chromium_copy_compressed_texture = 1357 feature_flags_.chromium_copy_compressed_texture =
1358 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); 1358 extensions.Contains("GL_CHROMIUM_copy_compressed_texture");
1359 feature_flags_.angle_client_arrays = 1359 feature_flags_.angle_client_arrays =
1360 extensions.Contains("GL_ANGLE_client_arrays"); 1360 extensions.Contains("GL_ANGLE_client_arrays");
1361 feature_flags_.angle_request_extension = 1361 feature_flags_.angle_request_extension =
1362 extensions.Contains("GL_ANGLE_request_extension"); 1362 extensions.Contains("GL_ANGLE_request_extension");
1363 feature_flags_.ext_debug_marker = extensions.Contains("GL_EXT_debug_marker");
1363 } 1364 }
1364 1365
1365 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( 1366 void FeatureInfo::InitializeFloatAndHalfFloatFeatures(
1366 const StringSet& extensions) { 1367 const StringSet& extensions) {
1367 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, 1368 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float,
1368 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear 1369 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear
1369 bool enable_texture_float = false; 1370 bool enable_texture_float = false;
1370 bool enable_texture_float_linear = false; 1371 bool enable_texture_float_linear = false;
1371 bool enable_texture_half_float = false; 1372 bool enable_texture_half_float = false;
1372 bool enable_texture_half_float_linear = false; 1373 bool enable_texture_half_float_linear = false;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 if (pos == std::string::npos) { 1683 if (pos == std::string::npos) {
1683 extensions_ += (extensions_.empty() ? "" : " ") + str; 1684 extensions_ += (extensions_.empty() ? "" : " ") + str;
1684 } 1685 }
1685 } 1686 }
1686 1687
1687 FeatureInfo::~FeatureInfo() { 1688 FeatureInfo::~FeatureInfo() {
1688 } 1689 }
1689 1690
1690 } // namespace gles2 1691 } // namespace gles2
1691 } // namespace gpu 1692 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698