Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1622)

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2305873002: cc: Include viewport clip in visible rect of unclipped surfaces (Closed)
Patch Set: comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index a9b6f3d9114204ddd4e546070a07f6bb0dba34f0..7db6814424ebe5496040584f5d4ffc3e34553a1f 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -468,12 +468,8 @@ void CalculateVisibleRects(const LayerImplList& visible_layer_list,
continue;
}
} else {
- if (clip_node->target_is_clipped) {
- combined_clip_rect_in_target_space =
- clip_node->combined_clip_in_target_space;
- } else {
- combined_clip_rect_in_target_space = clip_node->clip_in_target_space;
- }
+ combined_clip_rect_in_target_space =
+ clip_node->combined_clip_in_target_space;
}
// The clip rect should be intersected with layer rect in target space.
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698