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

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

Issue 242803007: Re-land: cc: Enable impl-side painting by default on all platforms where threaded composit... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | 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 a9c3318c86b611e63b712756df9046a5c960d565..209640745f080a59868a5e8a75411b08593a8c44 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -205,11 +205,10 @@ bool IsImplSidePaintingEnabled() {
else if (command_line.HasSwitch(switches::kEnableImplSidePainting))
return true;
-#if defined(OS_ANDROID)
+ if (!IsThreadedCompositingEnabled())
+ return false;
+
return true;
abarth-chromium 2014/04/25 23:04:56 Drive-by: return IsThreadedCompositingEnabled();
reveman 2014/04/25 23:46:06 Done :)
-#else
- return false;
-#endif
}
bool IsGpuRasterizationEnabled() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698