Move SoftwareFrameData overflow checks to the IPC code.
Instead of doing this check in SoftwareFrameManager and silently
dropping the frame, if we have an overflow, drop the IPC from the
renderer (and cause a renderer crash which we can see).
Also move computation code for the frame size in bytes to
SoftwareFrameData so the computation and the check can be beside
each other.
Also add unit tests for SoftwareFrameData IPC.
R=ccameron@chromium.org, jschuh@chromium.org, piman@chromium.org, ccameron, piman
BUG=348332
Review URL: https://codereview.chromium.org/196423027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258418 0039d316-1c4b-4281-b951-d872f2087c98