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

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

Issue 2460943002: Lower ES3 capable requirement to GL 3.3 with extensions. (Closed)
Patch Set: address piman comment Created 4 years, 2 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index a2d0d941ad8e6f91923b4104c665724c55ff44f6..4239ab7dc2cd957239fb5fedd6b215bb6b8d4a8f 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -26,6 +26,7 @@
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "gpu/config/gpu_feature_type.h"
+#include "ui/gl/gl_switches.h"
namespace content {
@@ -42,6 +43,7 @@ const char kWebGLFeatureName[] = "webgl";
const char kRasterizationFeatureName[] = "rasterization";
const char kMultipleRasterThreadsFeatureName[] = "multiple_raster_threads";
const char kNativeGpuMemoryBuffersFeatureName[] = "native_gpu_memory_buffers";
+const char kWebGL2FeatureName[] = "webgl2";
const int kMinRasterThreads = 1;
const int kMaxRasterThreads = 4;
@@ -143,14 +145,21 @@ 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.",
true},
+ {kWebGL2FeatureName,
+ manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2),
+ !command_line.HasSwitch(switches::kEnableUnsafeES3APIs) ||
+ command_line.HasSwitch(switches::kDisableES3APIs),
+ "WebGL2 has been disabled via blacklist or the command line.",
+ false},
};
DCHECK(index < arraysize(kGpuFeatureInfo));
*eof = (index == arraysize(kGpuFeatureInfo) - 1);
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698