cc: Ensure that skewport.Contains(visible_rect) is always true.
commit7923e436272f671334bc4d75edad97c67bc02212
authorvmpstr <vmpstr@chromium.org>
Tue, 19 May 2015 20:44:27 +0000 (19 13:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 20:44:20 +0000 (19 20:44 +0000)
tree6104316c9c1281278537f03ea49cd1f6cc3988f8
parent586df8dbac3349c087cae5197f0709ce26989bee
cc: Ensure that skewport.Contains(visible_rect) is always true.

This patch ensures that the skewport contains the visible rect. This
is a required that could be violated by extreme visible rects that
would overflow integer math. The fix is to add an extra union.
Includes a test.

R=enne
BUG=487130

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

Cr-Commit-Position: refs/heads/master@{#330600}
cc/tiles/picture_layer_tiling.cc
cc/tiles/picture_layer_tiling_unittest.cc