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

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

Issue 2250803002: Work around MacOSX driver bug related with glGetFragDataLocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 validators_.texture_unsized_internal_format.AddValue(GL_RED_EXT); 1279 validators_.texture_unsized_internal_format.AddValue(GL_RED_EXT);
1280 validators_.texture_unsized_internal_format.AddValue(GL_RG_EXT); 1280 validators_.texture_unsized_internal_format.AddValue(GL_RG_EXT);
1281 } 1281 }
1282 UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg); 1282 UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg);
1283 1283
1284 bool has_opengl_dual_source_blending = 1284 bool has_opengl_dual_source_blending =
1285 gl_version_info_->IsAtLeastGL(3, 3) || 1285 gl_version_info_->IsAtLeastGL(3, 3) ||
1286 (gl_version_info_->IsAtLeastGL(3, 2) && 1286 (gl_version_info_->IsAtLeastGL(3, 2) &&
1287 extensions.Contains("GL_ARB_blend_func_extended")); 1287 extensions.Contains("GL_ARB_blend_func_extended"));
1288 if (!disable_shader_translator_ && 1288 if (!disable_shader_translator_ &&
1289 !workarounds_.get_frag_data_info_bug &&
1289 ((gl_version_info_->IsAtLeastGL(3, 2) && 1290 ((gl_version_info_->IsAtLeastGL(3, 2) &&
1290 has_opengl_dual_source_blending) || 1291 has_opengl_dual_source_blending) ||
1291 (gl_version_info_->IsAtLeastGLES(3, 0) && 1292 (gl_version_info_->IsAtLeastGLES(3, 0) &&
1292 extensions.Contains("GL_EXT_blend_func_extended")))) { 1293 extensions.Contains("GL_EXT_blend_func_extended")))) {
1293 // Note: to simplify the code, we do not expose EXT_blend_func_extended 1294 // Note: to simplify the code, we do not expose EXT_blend_func_extended
1294 // unless the service context supports ES 3.0. This means the theoretical ES 1295 // unless the service context supports ES 3.0. This means the theoretical ES
1295 // 2.0 implementation with EXT_blend_func_extended is not sufficient. 1296 // 2.0 implementation with EXT_blend_func_extended is not sufficient.
1296 feature_flags_.ext_blend_func_extended = true; 1297 feature_flags_.ext_blend_func_extended = true;
1297 AddExtensionString("GL_EXT_blend_func_extended"); 1298 AddExtensionString("GL_EXT_blend_func_extended");
1298 1299
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 if (pos == std::string::npos) { 1464 if (pos == std::string::npos) {
1464 extensions_ += (extensions_.empty() ? "" : " ") + str; 1465 extensions_ += (extensions_.empty() ? "" : " ") + str;
1465 } 1466 }
1466 } 1467 }
1467 1468
1468 FeatureInfo::~FeatureInfo() { 1469 FeatureInfo::~FeatureInfo() {
1469 } 1470 }
1470 1471
1471 } // namespace gles2 1472 } // namespace gles2
1472 } // namespace gpu 1473 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698