| Index: content/browser/gpu/compositor_util.cc
|
| diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
|
| index da391747a434c38f94e6fa487a893725753ab907..383f3232f57a4e1a7f82b6b3deebde9959a38917 100644
|
| --- a/content/browser/gpu/compositor_util.cc
|
| +++ b/content/browser/gpu/compositor_util.cc
|
| @@ -220,8 +220,9 @@ bool IsPartialRasterEnabled() {
|
| if (IsZeroCopyUploadEnabled())
|
| return false;
|
|
|
| - // TODO(dshwang): enable partial raster. crbug.com/492754
|
| - return false;
|
| + const auto& command_line = *base::CommandLine::ForCurrentProcess();
|
| + return command_line.HasSwitch(switches::kEnablePartialRaster) &&
|
| + !command_line.HasSwitch(switches::kDisablePartialRaster);
|
| }
|
|
|
| bool IsGpuMemoryBufferCompositorResourcesEnabled() {
|
|
|