cc: Fix clipping of texture rect.
commit68f404105a46cf9f09b6b5cd30170e883e71be91
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 17 Apr 2014 04:45:40 +0000 (17 04:45 +0000)
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 17 Apr 2014 04:45:40 +0000 (17 04:45 +0000)
tree3db05dc8d3ed099a2053bdb735d8b5146a0e423c
parent78bddc5ca26ff2bc6e775583aee226915d7e237d
cc: Fix clipping of texture rect.

The clipping in texture_rect calculation needs to happen before the offset is added. This becomes relevant when tiling rect has an offset.

R=enne@chromium.org
BUG=362668

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264418 0039d316-1c4b-4281-b951-d872f2087c98
cc/resources/picture_layer_tiling.cc