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

Unified Diff: content/child/runtime_features.cc

Issue 2023383004: Move Canvas and WebGL Image Chromium behind experiments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp68_enable_webgl
Patch Set: Compile errors. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 704dd899ba3f537272b2be71e7fd8c83f527d7fd..6233f24d614a99da1a82629c06a8ea7bec662e41 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -114,6 +114,11 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
switches::kEnableGpuMemoryBufferCompositorResources) &&
!command_line.HasSwitch(switches::kDisable2dCanvasImageChromium) &&
!command_line.HasSwitch(switches::kDisableGpu);
+
+ if (enable_canvas_2d_image_chromium) {
+ enable_canvas_2d_image_chromium =
+ base::FeatureList::IsEnabled(features::kCanvas2DImageChromium);
+ }
#else
bool enable_canvas_2d_image_chromium = false;
#endif
@@ -125,6 +130,11 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
switches::kEnableGpuMemoryBufferCompositorResources) &&
!command_line.HasSwitch(switches::kDisableWebGLImageChromium) &&
!command_line.HasSwitch(switches::kDisableGpu);
+
+ if (enable_web_gl_image_chromium) {
+ enable_web_gl_image_chromium =
+ base::FeatureList::IsEnabled(features::kWebGLImageChromium);
+ }
#else
bool enable_web_gl_image_chromium =
command_line.HasSwitch(switches::kEnableWebGLImageChromium);
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698