Cancel GPU acceleration for 2D canvas when drawing very large images

GPU texture upload overhead is often prohibitively expensive when
drawing very large images into a canvas. This change adds an
heuristic to trigger a fallback to software rendering when this
happens

TBR=kbr@chromium.org
BUG=367355
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2362363002
Cr-Commit-Position: refs/heads/master@{#421651}
15 files changed