Propogate the clip rect for visible_content_rect into surfaces.
commitf6069db89203f0797e4429c47ae268901c69a299
authordanakj <danakj@chromium.org>
Sat, 13 Sep 2014 00:46:47 +0000 (12 17:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 13 Sep 2014 00:52:44 +0000 (13 00:52 +0000)
tree0f7cb887cdddb9b06ed286517e7b6e73ab2a9d40
parent48f632fe338f4c0a5b7d48fb865cf0c6af52ab47
Propogate the clip rect for visible_content_rect into surfaces.

Currently each render surface takes as its clip rect for visible content
rects as the clip rect directly clipping its own surface, but drops the
clip for visible content rects from outside the surface.

This means that the viewport does not clip the visible_content_rect of
any layers that aren't in the root surface. Fixed by intersecting this
clip for visible content rects with the one from outside the surface.

BUG=410625

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

Cr-Commit-Position: refs/heads/master@{#294706}
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common_unittest.cc