cc: Reduce renderer_main thread priority when prefer_smoothness is set

This tracks how many compositors prefer smooth frame-rate,
and throttles/resets the main thread's priority as
appropriate. Compositors in the same process share the same
thread, so we track this count in a static int.

All thread priorities use #ifdefs for reduced risk and
easier merging. This needs to be abstracted and enabled
on other platforms (http://crbug.com/170549)

BUG=164651

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178225 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed