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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2764343006: cc : Make visible rect independant of render surface's is_clipped value (Closed)
Patch Set: remove fully visible path Created 3 years, 9 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 0677b6088fba2ae22f7ebffee0db820f10ee9572..6f7e8cbcd63920ac9a5b387d93be96a02af5fecb 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -625,16 +625,8 @@ static gfx::Rect LayerVisibleRect(PropertyTrees* property_trees,
} else {
const ClipNode* clip_node =
property_trees->clip_tree.Node(layer->clip_tree_index());
- const EffectNode* effect_node = property_trees->effect_tree.Node(
- layer->render_target_effect_tree_index());
- bool fully_visible =
- !layer->is_clipped() && !effect_node->surface_is_clipped;
- if (fully_visible) {
- accumulated_clip_in_root_space = property_trees->clip_tree.ViewportClip();
- } else {
- accumulated_clip_in_root_space =
- clip_node->cached_accumulated_rect_in_screen_space;
- }
+ accumulated_clip_in_root_space =
+ clip_node->cached_accumulated_rect_in_screen_space;
}
const EffectNode* root_effect_node =
« 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