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

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

Issue 2127323002: cc: Use sublayer scale from effect tree (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 gfx::Rect combined_clip_in_target_space = 1665 gfx::Rect combined_clip_in_target_space =
1666 gfx::ToEnclosingRect(clip_node->combined_clip_in_target_space); 1666 gfx::ToEnclosingRect(clip_node->combined_clip_in_target_space);
1667 if (!PointHitsRect(screen_space_point, gfx::Transform(), 1667 if (!PointHitsRect(screen_space_point, gfx::Transform(),
1668 combined_clip_in_target_space, NULL)) 1668 combined_clip_in_target_space, NULL))
1669 return true; 1669 return true;
1670 1670
1671 for (const ClipNode* clip_node = clip_tree.Node(layer->clip_tree_index()); 1671 for (const ClipNode* clip_node = clip_tree.Node(layer->clip_tree_index());
1672 clip_node->id > 1; clip_node = clip_tree.parent(clip_node)) { 1672 clip_node->id > 1; clip_node = clip_tree.parent(clip_node)) {
1673 if (clip_node->applies_local_clip) { 1673 if (clip_node->applies_local_clip) {
1674 const TransformNode* transform_node = 1674 const TransformNode* transform_node =
1675 transform_tree.Node(clip_node->target_id); 1675 transform_tree.Node(clip_node->target_transform_id);
1676 gfx::Rect combined_clip_in_target_space = 1676 gfx::Rect combined_clip_in_target_space =
1677 gfx::ToEnclosingRect(clip_node->combined_clip_in_target_space); 1677 gfx::ToEnclosingRect(clip_node->combined_clip_in_target_space);
1678 1678
1679 const LayerImpl* target_layer = 1679 const LayerImpl* target_layer =
1680 layer->layer_tree_impl()->LayerById(transform_node->owner_id); 1680 layer->layer_tree_impl()->LayerById(transform_node->owner_id);
1681 DCHECK(transform_node->id == 0 || target_layer->render_surface() || 1681 DCHECK(transform_node->id == 0 || target_layer->render_surface() ||
1682 layer->layer_tree_impl()->is_in_resourceless_software_draw_mode()); 1682 layer->layer_tree_impl()->is_in_resourceless_software_draw_mode());
1683 gfx::Transform surface_screen_space_transform = 1683 gfx::Transform surface_screen_space_transform =
1684 transform_node->id == 0 || 1684 transform_node->id == 0 ||
1685 (layer->layer_tree_impl() 1685 (layer->layer_tree_impl()
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 2108
2109 void LayerTreeImpl::ResetAllChangeTracking() { 2109 void LayerTreeImpl::ResetAllChangeTracking() {
2110 layers_that_should_push_properties_.clear(); 2110 layers_that_should_push_properties_.clear();
2111 // Iterate over all layers, including masks and replicas. 2111 // Iterate over all layers, including masks and replicas.
2112 for (auto& layer : *layers_) 2112 for (auto& layer : *layers_)
2113 layer->ResetChangeTracking(); 2113 layer->ResetChangeTracking();
2114 property_trees_.ResetAllChangeTracking(); 2114 property_trees_.ResetAllChangeTracking();
2115 } 2115 }
2116 2116
2117 } // namespace cc 2117 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698