Deal correctly with too-small MediaCodec buffers.

Prior to r221331, MediaCodecBridge::QueueInputBuffer() returned the number of
bytes queued in an attempt to deal with clients that tried to queue inputs
larger than MediaCodec's buffers could hold.  That wasn't completely worked
through, though, and doesn't seem to be workable given that MediaCodec's API
deals in "Access Units", not bytes, so it is not permitted to queue half of an
input in one buffer and half in the next.  r221331 (silently) replaced this
half-support with a requirement that inputs fit in buffers.  This CL turns this
DCHECK requirement into an error-triggering one, and fixes a callsite that r221331 missed
(AndroidVideoDecodeAccelerator), along with a bunch of plumbing that was only
needed while partial-buffer-queueing was possible.

BUG=305421

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227897 0039d316-1c4b-4281-b951-d872f2087c98
[ash] Enable passing NULL parameter to LauncherView::CalculateIdealBounds()

Sometimes, we don't need to fetch overflow bounds.

R=jamescook@chromium.org
BUG=NONE
TEST=Compiles

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227898 0039d316-1c4b-4281-b951-d872f2087c98
android: Add missing are_layers_attached_ checks.

Add checks for are_layers_attached_ before doing
RemoveLayers()/AttachLayers() so we don't attach the
DelegatedRendererLayer suddenly when nothing was attached
before.

R=sievers
BUG=263069

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

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