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

Side by Side Diff: cc/trees/draw_property_utils.cc

Issue 2856043002: cc : Layers with singular transforms and copy request should be drawn (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/effect_node.h » ('j') | cc/trees/effect_node.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/draw_property_utils.h" 5 #include "cc/trees/draw_property_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 effect_tree.Node(effect_node->target_id); 655 effect_tree.Node(effect_node->target_id);
656 property_trees->GetToTarget(transform_node->id, target_effect_node->id, 656 property_trees->GetToTarget(transform_node->id, target_effect_node->id,
657 &render_surface_transform); 657 &render_surface_transform);
658 658
659 ConcatInverseSurfaceContentsScale(effect_node, &render_surface_transform); 659 ConcatInverseSurfaceContentsScale(effect_node, &render_surface_transform);
660 render_surface->SetDrawTransform(render_surface_transform); 660 render_surface->SetDrawTransform(render_surface_transform);
661 } 661 }
662 662
663 static gfx::Rect LayerVisibleRect(PropertyTrees* property_trees, 663 static gfx::Rect LayerVisibleRect(PropertyTrees* property_trees,
664 LayerImpl* layer) { 664 LayerImpl* layer) {
665 const EffectNode* effect_node =
666 property_trees->effect_tree.Node(layer->effect_tree_index());
665 int effect_ancestor_with_copy_request = 667 int effect_ancestor_with_copy_request =
666 property_trees->effect_tree.ClosestAncestorWithCopyRequest( 668 effect_node->closest_ancestor_with_copy_request_id;
667 layer->effect_tree_index());
668 bool non_root_copy_request = 669 bool non_root_copy_request =
669 effect_ancestor_with_copy_request > EffectTree::kContentsRootNodeId; 670 effect_ancestor_with_copy_request > EffectTree::kContentsRootNodeId;
670 gfx::Rect layer_content_rect = gfx::Rect(layer->bounds()); 671 gfx::Rect layer_content_rect = gfx::Rect(layer->bounds());
671 gfx::RectF accumulated_clip_in_root_space; 672 gfx::RectF accumulated_clip_in_root_space;
672 if (non_root_copy_request) { 673 if (non_root_copy_request) {
673 bool include_expanding_clips = true; 674 bool include_expanding_clips = true;
674 ConditionalClip accumulated_clip = ComputeAccumulatedClip( 675 ConditionalClip accumulated_clip = ComputeAccumulatedClip(
675 property_trees, include_expanding_clips, layer->clip_tree_index(), 676 property_trees, include_expanding_clips, layer->clip_tree_index(),
676 effect_ancestor_with_copy_request); 677 effect_ancestor_with_copy_request);
677 if (!accumulated_clip.is_clipped) 678 if (!accumulated_clip.is_clipped)
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 void UpdateElasticOverscroll(PropertyTrees* property_trees, 1090 void UpdateElasticOverscroll(PropertyTrees* property_trees,
1090 const Layer* overscroll_elasticity_layer, 1091 const Layer* overscroll_elasticity_layer,
1091 const gfx::Vector2dF& elastic_overscroll) { 1092 const gfx::Vector2dF& elastic_overscroll) {
1092 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer, 1093 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer,
1093 elastic_overscroll); 1094 elastic_overscroll);
1094 } 1095 }
1095 1096
1096 } // namespace draw_property_utils 1097 } // namespace draw_property_utils
1097 1098
1098 } // namespace cc 1099 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/effect_node.h » ('j') | cc/trees/effect_node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698