summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorjinsukkim@chromium.org <jinsukkim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 04:56:01 +0000
committerjinsukkim@chromium.org <jinsukkim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 04:56:01 +0000
commit2f8eadf31c37dfac85944bfc754dbb582fda0ab0 (patch)
tree74c6b80aecb189515c479ebead9bdf7acb45041e /cc
parent67241b83d4bd573d00f1fa6e6056cf25f74ddf49 (diff)
downloadchromium_src-2f8eadf31c37dfac85944bfc754dbb582fda0ab0.zip
chromium_src-2f8eadf31c37dfac85944bfc754dbb582fda0ab0.tar.gz
chromium_src-2f8eadf31c37dfac85944bfc754dbb582fda0ab0.tar.bz2
Disables impl-side painting on TV device
Impl-side painting mechanism was playing a part in rendering contents on 1080p resolution in less responsive manner. This CL disables it to address the issue. As the device is mostly controlled with keyboard as opposed to touch like on mobile/tablets, this is acceptable. BUG=235347 Review URL: https://chromiumcodereview.appspot.com/14190008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/base/switches.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 80996e9..a90dc67 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -152,7 +152,12 @@ bool IsImplSidePaintingEnabled() {
else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
return true;
-#if defined(OS_ANDROID)
+// Check GOOGLE_TV ahead of OS_ANDROID as they are not orthogonal.
+// TODO(jinsukkim): Remove this once the impl-side javascript-driven painting
+// performance issue is addressed. (crbug.com/235347)
+#if defined(GOOGLE_TV)
+ return false;
+#elif defined(OS_ANDROID)
return true;
#else
return false;