Commit adc273fd authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

[Fuchsia] Add MSAA flags in the list of allowed switches for WebEngine

Added --canvas-msaa-sample-count and --gpu-rasterization-msaa-sample-count
in the list of switches allowed in the WebEngine config. These flags are
useful to turn off MSAA, which may be required to save memory.

Bug: fuchsia:43693
Change-Id: Ib519cc7bede46a5ff7879d1a9678fbf88e33de2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040200
Auto-Submit: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738719}
parent 77b321e9
...@@ -152,6 +152,7 @@ bool MaybeAddCommandLineArgsFromConfig(const base::Value& config, ...@@ -152,6 +152,7 @@ bool MaybeAddCommandLineArgsFromConfig(const base::Value& config,
return true; return true;
static const base::StringPiece kAllowedArgs[] = { static const base::StringPiece kAllowedArgs[] = {
switches::kAcceleratedCanvas2dMSAASampleCount,
switches::kDisableFeatures, switches::kDisableFeatures,
switches::kDisableGpuWatchdog, switches::kDisableGpuWatchdog,
switches::kEnableFeatures, switches::kEnableFeatures,
...@@ -160,6 +161,7 @@ bool MaybeAddCommandLineArgsFromConfig(const base::Value& config, ...@@ -160,6 +161,7 @@ bool MaybeAddCommandLineArgsFromConfig(const base::Value& config,
switches::kForceGpuMemAvailableMb, switches::kForceGpuMemAvailableMb,
switches::kForceGpuMemDiscardableLimitMb, switches::kForceGpuMemDiscardableLimitMb,
switches::kForceMaxTextureSize, switches::kForceMaxTextureSize,
switches::kGpuRasterizationMSAASampleCount,
switches::kMinHeightForGpuRasterTile, switches::kMinHeightForGpuRasterTile,
switches::kRendererProcessLimit, switches::kRendererProcessLimit,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment