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

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

Issue 947653002: Fix MSAA on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the old test code Created 5 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
« no previous file with comments | « no previous file | no next file » | 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 bool enable_immutable_texture_format_bgra_on_es3 = 464 bool enable_immutable_texture_format_bgra_on_es3 =
465 extensions.Contains("GL_APPLE_texture_format_BGRA8888"); 465 extensions.Contains("GL_APPLE_texture_format_BGRA8888");
466 466
467 // Check if we should allow GL_EXT_texture_format_BGRA8888 467 // Check if we should allow GL_EXT_texture_format_BGRA8888
468 if (extensions.Contains("GL_EXT_texture_format_BGRA8888") || 468 if (extensions.Contains("GL_EXT_texture_format_BGRA8888") ||
469 enable_immutable_texture_format_bgra_on_es3 || 469 enable_immutable_texture_format_bgra_on_es3 ||
470 extensions.Contains("GL_EXT_bgra")) { 470 extensions.Contains("GL_EXT_bgra")) {
471 enable_texture_format_bgra8888 = true; 471 enable_texture_format_bgra8888 = true;
472 } 472 }
473 473
474 if (extensions.Contains("GL_EXT_bgra")) { 474 if (extensions.Contains("GL_EXT_texture_format_BGRA8888")) {
Ken Russell (switch to Gerrit) 2015/02/21 01:22:28 Something looks wrong with this change. GL_EXT_tex
475 enable_render_buffer_bgra = true; 475 enable_render_buffer_bgra = true;
476 } 476 }
477 477
478 if (extensions.Contains("GL_EXT_read_format_bgra") || 478 if (extensions.Contains("GL_EXT_read_format_bgra") ||
479 extensions.Contains("GL_EXT_bgra")) { 479 extensions.Contains("GL_EXT_bgra")) {
480 enable_read_format_bgra = true; 480 enable_read_format_bgra = true;
481 } 481 }
482 482
483 if (enable_texture_format_bgra8888) { 483 if (enable_texture_format_bgra8888) {
484 feature_flags_.ext_texture_format_bgra8888 = true; 484 feature_flags_.ext_texture_format_bgra8888 = true;
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 if (pos == std::string::npos) { 1044 if (pos == std::string::npos) {
1045 extensions_ += (extensions_.empty() ? "" : " ") + str; 1045 extensions_ += (extensions_.empty() ? "" : " ") + str;
1046 } 1046 }
1047 } 1047 }
1048 1048
1049 FeatureInfo::~FeatureInfo() { 1049 FeatureInfo::~FeatureInfo() {
1050 } 1050 }
1051 1051
1052 } // namespace gles2 1052 } // namespace gles2
1053 } // namespace gpu 1053 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698