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

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

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 895044d71eaeacd311ec9c131eb9a8d37162694c..e4e8fd6130260dc485b0006c0cf22f1884c1909a 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -165,6 +165,12 @@ bool IsPropertyTreeVerificationEnabled() {
return command_line.HasSwitch(cc::switches::kEnablePropertyTreeVerification);
}
+bool IsBlinkSynchronizedPaintingEnabled() {
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+ return command_line.HasSwitch(switches::kEnableBlinkSynchronizedPainting);
+}
+
int NumberOfRendererRasterThreads() {
int num_processors = base::SysInfo::NumberOfProcessors();

Powered by Google App Engine
This is Rietveld 408576698