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

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

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: make more consistent Created 5 years, 6 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 <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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 999
1000 AddExtensionString("GL_KHR_blend_equation_advanced"); 1000 AddExtensionString("GL_KHR_blend_equation_advanced");
1001 feature_flags_.blend_equation_advanced = true; 1001 feature_flags_.blend_equation_advanced = true;
1002 feature_flags_.blend_equation_advanced_coherent = 1002 feature_flags_.blend_equation_advanced_coherent =
1003 blend_equation_advanced_coherent; 1003 blend_equation_advanced_coherent;
1004 } 1004 }
1005 } 1005 }
1006 1006
1007 if (extensions.Contains("GL_NV_path_rendering")) { 1007 if (extensions.Contains("GL_NV_path_rendering")) {
1008 if (extensions.Contains("GL_EXT_direct_state_access") || 1008 if (extensions.Contains("GL_EXT_direct_state_access") ||
1009 gl_version_info_->is_es3) { 1009 gl_version_info_->is_es3) {
piman 2015/06/24 03:27:44 Can we gate this behind a command-line flag? We're
Kimmo Kinnunen 2015/06/24 12:49:01 Done.
1010 AddExtensionString("GL_CHROMIUM_path_rendering"); 1010 AddExtensionString("GL_CHROMIUM_path_rendering");
1011 feature_flags_.chromium_path_rendering = true; 1011 feature_flags_.chromium_path_rendering = true;
1012 validators_.g_l_state.AddValue(GL_PATH_MODELVIEW_MATRIX_CHROMIUM); 1012 validators_.g_l_state.AddValue(GL_PATH_MODELVIEW_MATRIX_CHROMIUM);
1013 validators_.g_l_state.AddValue(GL_PATH_PROJECTION_MATRIX_CHROMIUM); 1013 validators_.g_l_state.AddValue(GL_PATH_PROJECTION_MATRIX_CHROMIUM);
1014 validators_.g_l_state.AddValue(GL_PATH_STENCIL_FUNC_CHROMIUM);
1015 validators_.g_l_state.AddValue(GL_PATH_STENCIL_REF_CHROMIUM);
1016 validators_.g_l_state.AddValue(GL_PATH_STENCIL_VALUE_MASK_CHROMIUM);
1014 } 1017 }
1015 } 1018 }
1016 1019
1017 if ((gl_version_info_->is_es3 || gl_version_info_->is_desktop_core_profile || 1020 if ((gl_version_info_->is_es3 || gl_version_info_->is_desktop_core_profile ||
1018 extensions.Contains("GL_EXT_texture_rg") || 1021 extensions.Contains("GL_EXT_texture_rg") ||
1019 extensions.Contains("GL_ARB_texture_rg")) && 1022 extensions.Contains("GL_ARB_texture_rg")) &&
1020 IsGL_REDSupportedOnFBOs()) { 1023 IsGL_REDSupportedOnFBOs()) {
1021 feature_flags_.ext_texture_rg = true; 1024 feature_flags_.ext_texture_rg = true;
1022 AddExtensionString("GL_EXT_texture_rg"); 1025 AddExtensionString("GL_EXT_texture_rg");
1023 1026
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 if (pos == std::string::npos) { 1136 if (pos == std::string::npos) {
1134 extensions_ += (extensions_.empty() ? "" : " ") + str; 1137 extensions_ += (extensions_.empty() ? "" : " ") + str;
1135 } 1138 }
1136 } 1139 }
1137 1140
1138 FeatureInfo::~FeatureInfo() { 1141 FeatureInfo::~FeatureInfo() {
1139 } 1142 }
1140 1143
1141 } // namespace gles2 1144 } // namespace gles2
1142 } // namespace gpu 1145 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698