Fix bugs for blitFramebuffer when we limit src/dst rect size.

According to WebGL 2 spec. the width/height of src/dst blitting area
should not exceed the max value that can be stored in an integer.

Bug: 844308, 830046
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I65833dfacabacc46c5cd3602233926e3e31aa6cf
Reviewed-on: https://chromium-review.googlesource.com/1061053
Commit-Queue: Yunchao He <yunchao.he@intel.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562748}
2 files changed