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

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

Issue 1068573004: Disable framebuffer discarding on Mali-4xx and clean up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698