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

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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove "--enable-persistent-gpu-memory-buffer" Created 5 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
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 216d1da24b6c3facb393e0787fe4f765132f16d9..c6aabfbed098d33813801d76df8ff902d30839e5 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -208,12 +208,12 @@ bool IsZeroCopyUploadEnabled() {
#endif
}
-bool IsPersistentGpuMemoryBufferEnabled() {
- // Zero copy currently doesn't take advantage of persistent buffers.
+bool IsPartialRasterEnabled() {
+ // Zero copy currently doesn't take advantage of partial raster.
if (IsZeroCopyUploadEnabled())
return false;
const auto& command_line = *base::CommandLine::ForCurrentProcess();
- return command_line.HasSwitch(switches::kEnablePersistentGpuMemoryBuffer);
+ return command_line.HasSwitch(switches::kEnablePartialRaster);
}
bool IsGpuRasterizationEnabled() {

Powered by Google App Engine
This is Rietveld 408576698