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

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

Issue 2670213005: Hook ANGLE_request_extension up to the passthrough cmd decoder. (Closed)
Patch Set: Address zmo's comments. Created 3 years, 10 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 extensions.Contains("GL_ANGLE_robust_client_memory"); 1393 extensions.Contains("GL_ANGLE_robust_client_memory");
1394 1394
1395 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) || 1395 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) ||
1396 gl_version_info_->IsAtLeastGLES(3, 2) || 1396 gl_version_info_->IsAtLeastGLES(3, 2) ||
1397 extensions.Contains("GL_KHR_debug"); 1397 extensions.Contains("GL_KHR_debug");
1398 1398
1399 feature_flags_.chromium_bind_generates_resource = 1399 feature_flags_.chromium_bind_generates_resource =
1400 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); 1400 extensions.Contains("GL_CHROMIUM_bind_generates_resource");
1401 feature_flags_.angle_webgl_compatibility = 1401 feature_flags_.angle_webgl_compatibility =
1402 extensions.Contains("GL_ANGLE_webgl_compatibility"); 1402 extensions.Contains("GL_ANGLE_webgl_compatibility");
1403 feature_flags_.angle_request_extension =
1404 extensions.Contains("GL_ANGLE_request_extension");
1403 } 1405 }
1404 1406
1405 bool FeatureInfo::IsES3Capable() const { 1407 bool FeatureInfo::IsES3Capable() const {
1406 if (workarounds_.disable_texture_storage) 1408 if (workarounds_.disable_texture_storage)
1407 return false; 1409 return false;
1408 if (gl_version_info_) 1410 if (gl_version_info_)
1409 return gl_version_info_->is_es3_capable; 1411 return gl_version_info_->is_es3_capable;
1410 return false; 1412 return false;
1411 } 1413 }
1412 1414
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 if (pos == std::string::npos) { 1538 if (pos == std::string::npos) {
1537 extensions_ += (extensions_.empty() ? "" : " ") + str; 1539 extensions_ += (extensions_.empty() ? "" : " ") + str;
1538 } 1540 }
1539 } 1541 }
1540 1542
1541 FeatureInfo::~FeatureInfo() { 1543 FeatureInfo::~FeatureInfo() {
1542 } 1544 }
1543 1545
1544 } // namespace gles2 1546 } // namespace gles2
1545 } // namespace gpu 1547 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698