Make WindowAndroid constructor takes context as param.

BUG=309104
TBR=yfriedman

Review URL: https://codereview.chromium.org/29303004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233774 0039d316-1c4b-4281-b951-d872f2087c98
cc: Only report calc_draw_props_time.

The perf dashboard is configured to monitor every trace output by the
cc_perftests. Here, we were outputting two traces that represent the exact
same thing. This only causes more work for the perf sheriffs. So I'm cutting it
down to one.

Incidentally, this eliminates a bug where the dashboard thought that a higher
count was a regression.

This also improves the precision by supporting decimals.

BUG=313537

Review URL: https://codereview.chromium.org/56573002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233775 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 233775
Remove EMPTY from VideoFrame::Format.

It was being used to indicate end-of-stream, which was sort of an abuse of the format enum. Instead, we now have a CreateEOSFrame(), rather than CreateEmptyFrame(), and an |end_of_stream_| member.

BUG=313827
TBR=danakj

Review URL: https://codereview.chromium.org/57403003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233776 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 233776
Replaces uses of the WGC3DSwapBuffersClient with LTHSingleThreadClient

This converts users of the WebGraphicsContext3DSwapBuffersClient mechanism
over to using callbacks from cc::LayerTreeHostSingleThreadClient instead.
This mechanism is a way to implement flow control when using single threaded
compositing by keeping track of the number of pending SwapBuffers calls.
WGC3DSwapBuffersClient hooked into the context directly to observer these
calls, but intercepted the calls at an awkward place. This instead gets
callbacks directly from the compositor when using the single threaded path.

R=piman
BUG=181120

Review URL: https://codereview.chromium.org/59033012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233777 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 233777