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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Formatting fix Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 21140f34905e98ba85dd3725db54a77091361fec..7607f7722b840f1a37ab7658d83e49eea68ca977 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -86,8 +86,7 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index, bool* eof) {
" or the command line. The browser will fall back to software compositing"
" and hardware acceleration will be unavailable.",
true},
- {kWebGLFeatureName,
- manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL),
+ {kWebGLFeatureName, !manager->IsWebGLEnabled(),
command_line.HasSwitch(switches::kDisableExperimentalWebGL),
"WebGL has been disabled via blacklist or the command line.", false},
{"flash_3d", manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH3D),
@@ -109,15 +108,17 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index, bool* eof) {
"Using Stage3d Baseline profile in Flash has been disabled, either"
" via blacklist, about:flags or the command line.",
true},
- {"video_decode", manager->IsFeatureBlacklisted(
- gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
+ {"video_decode",
+ manager->IsFeatureBlacklisted(
+ gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode),
"Accelerated video decode has been disabled, either via blacklist,"
" about:flags or the command line.",
true},
#if BUILDFLAG(ENABLE_WEBRTC)
- {"video_encode", manager->IsFeatureBlacklisted(
- gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE),
+ {"video_encode",
+ manager->IsFeatureBlacklisted(
+ gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE),
command_line.HasSwitch(switches::kDisableWebRtcHWEncoding),
"Accelerated video encode has been disabled, either via blacklist,"
" about:flags or the command line.",
@@ -147,10 +148,11 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index, bool* eof) {
"Native GpuMemoryBuffers have been disabled, either via about:flags"
" or command line.",
true},
- {"vpx_decode", manager->IsFeatureBlacklisted(
- gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) ||
- manager->IsFeatureBlacklisted(
- gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
+ {"vpx_decode",
+ manager->IsFeatureBlacklisted(
+ gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) ||
+ manager->IsFeatureBlacklisted(
+ gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
accelerated_vpx_disabled,
"Accelerated VPx video decode has been disabled, either via blacklist"
" or the command line.",
« no previous file with comments | « chrome/browser/extensions/requirements_checker_browsertest.cc ('k') | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698