summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_common.cc
diff options
context:
space:
mode:
authorxjz <xjz@chromium.org>2015-11-04 17:29:52 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-05 01:30:47 +0000
commit209a697abe402743e10b03d6f8bf8c9fedfdfbe3 (patch)
treeba6905bb3128935c79f967d95bd734e51baea181 /cc/trees/layer_tree_host_common.cc
parent56f77ba2c6a0aeade32b69fa94694e641f6bfa1c (diff)
downloadchromium_src-209a697abe402743e10b03d6f8bf8c9fedfdfbe3.zip
chromium_src-209a697abe402743e10b03d6f8bf8c9fedfdfbe3.tar.gz
chromium_src-209a697abe402743e10b03d6f8bf8c9fedfdfbe3.tar.bz2
Fixed the bug that window capture clipped the content when the window
is not fully contained in the desktop. BUG=541634,511841 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1398633003 Cr-Commit-Position: refs/heads/master@{#357970}
Diffstat (limited to 'cc/trees/layer_tree_host_common.cc')
-rw-r--r--cc/trees/layer_tree_host_common.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 4d14ff7..c9e88ac 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1893,6 +1893,9 @@ static void CalculateDrawPropertiesInternal(
accumulated_surface_state->push_back(AccumulatedSurfaceState(layer));
+ // Don't clip if the layer has copy requests.
+ if (layer->HasCopyRequest())
+ subtree_is_clipped_by_surface_bounds = false;
render_surface->SetIsClipped(subtree_is_clipped_by_surface_bounds);
if (!subtree_is_clipped_by_surface_bounds) {
render_surface->SetClipRect(gfx::Rect());