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

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

Issue 1836333003: Force on partial raster for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('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 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() {
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698