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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 2473933002: Enable WebGL 2 by default! (on desktop) (Closed)
Patch Set: undo rename of GpuPreferences::enable_unsafe_es3_apis Created 4 years, 1 month 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 | « chrome/browser/about_flags.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.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 "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 manager->IsFeatureBlacklisted( 149 manager->IsFeatureBlacklisted(
150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) || 150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) ||
151 manager->IsFeatureBlacklisted( 151 manager->IsFeatureBlacklisted(
152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), 152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
153 accelerated_vpx_disabled, 153 accelerated_vpx_disabled,
154 "Accelerated VPx video decode has been disabled, either via blacklist" 154 "Accelerated VPx video decode has been disabled, either via blacklist"
155 " or the command line.", 155 " or the command line.",
156 true}, 156 true},
157 {kWebGL2FeatureName, 157 {kWebGL2FeatureName,
158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2), 158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2),
159 !command_line.HasSwitch(switches::kEnableUnsafeES3APIs) || 159 !command_line.HasSwitch(switches::kEnableES3APIs) ||
160 command_line.HasSwitch(switches::kDisableES3APIs), 160 command_line.HasSwitch(switches::kDisableES3APIs),
161 "WebGL2 has been disabled via blacklist or the command line.", 161 "WebGL2 has been disabled via blacklist or the command line.",
162 false}, 162 false},
163 }; 163 };
164 DCHECK(index < arraysize(kGpuFeatureInfo)); 164 DCHECK(index < arraysize(kGpuFeatureInfo));
165 *eof = (index == arraysize(kGpuFeatureInfo) - 1); 165 *eof = (index == arraysize(kGpuFeatureInfo) - 1);
166 return kGpuFeatureInfo[index]; 166 return kGpuFeatureInfo[index];
167 } 167 }
168 168
169 } // namespace 169 } // namespace
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 } 415 }
416 return problem_list; 416 return problem_list;
417 } 417 }
418 418
419 std::vector<std::string> GetDriverBugWorkarounds() { 419 std::vector<std::string> GetDriverBugWorkarounds() {
420 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 420 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
421 } 421 }
422 422
423 } // namespace content 423 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698