Commit e757ec6e authored by ajuma@chromium.org's avatar ajuma@chromium.org

[content shell] Do not disable cc-driven animation when using threaded compositing

The kDisableThreadedAnimation flag, which actually disables cc-driven animations
regardless of whether we're using a compositor thread, is currently set for all
layout tests. We need to set this flag in single thread mode (which is the default
for layout tests) since, in this mode, cc-driven animations cause never-ending
invalidation, causing tests to fail. However, when threaded compositing is enabled,
cc-driven animations do not cause never-ending invalidation.

This CL makes us only disable cc-driven animations when in single thread mode.
This is a prerequisite for creating a virtual test suite for animations that uses
threaded compositing and threaded animation.

BUG=244266

Review URL: https://chromiumcodereview.appspot.com/15939004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202583 0039d316-1c4b-4281-b951-d872f2087c98
parent 1e45cbc4
......@@ -125,7 +125,8 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
command_line.AppendSwitchASCII(switches::kTouchEvents,
switches::kTouchEventsEnabled);
command_line.AppendSwitch(switches::kEnableGestureTapHighlight);
command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation);
if (!command_line.HasSwitch(switches::kEnableThreadedCompositing))
command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation);
if (command_line.HasSwitch(switches::kEnableSoftwareCompositing))
command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment