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

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

Issue 1491033002: Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: fix for crash Created 5 years 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/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_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_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 3648 matching lines...) Expand 10 before | Expand all | Expand 10 after
3659 LayerTreeImpl* tree, 3659 LayerTreeImpl* tree,
3660 bool is_animating) { 3660 bool is_animating) {
3661 if (!tree) 3661 if (!tree)
3662 return; 3662 return;
3663 3663
3664 LayerAnimationValueObserver* layer = tree->LayerById(layer_id); 3664 LayerAnimationValueObserver* layer = tree->LayerById(layer_id);
3665 if (layer) 3665 if (layer)
3666 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating); 3666 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating);
3667 } 3667 }
3668 3668
3669 bool LayerTreeHostImpl::AnimationsPreserveAxisAlignment(
3670 const LayerImpl* layer) const {
3671 return animation_host_
3672 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id())
3673 : true;
3674 }
3675
3669 void LayerTreeHostImpl::SetLayerFilterMutated(int layer_id, 3676 void LayerTreeHostImpl::SetLayerFilterMutated(int layer_id,
3670 LayerTreeType tree_type, 3677 LayerTreeType tree_type,
3671 const FilterOperations& filters) { 3678 const FilterOperations& filters) {
3672 if (tree_type == LayerTreeType::ACTIVE) { 3679 if (tree_type == LayerTreeType::ACTIVE) {
3673 SetTreeLayerFilterMutated(layer_id, active_tree(), filters); 3680 SetTreeLayerFilterMutated(layer_id, active_tree(), filters);
3674 } else { 3681 } else {
3675 SetTreeLayerFilterMutated(layer_id, pending_tree(), filters); 3682 SetTreeLayerFilterMutated(layer_id, pending_tree(), filters);
3676 SetTreeLayerFilterMutated(layer_id, recycle_tree(), filters); 3683 SetTreeLayerFilterMutated(layer_id, recycle_tree(), filters);
3677 } 3684 }
3678 } 3685 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 return task_runner_provider_->HasImplThread(); 3752 return task_runner_provider_->HasImplThread();
3746 } 3753 }
3747 3754
3748 bool LayerTreeHostImpl::CommitToActiveTree() const { 3755 bool LayerTreeHostImpl::CommitToActiveTree() const {
3749 // In single threaded mode we skip the pending tree and commit directly to the 3756 // In single threaded mode we skip the pending tree and commit directly to the
3750 // active tree. 3757 // active tree.
3751 return !task_runner_provider_->HasImplThread(); 3758 return !task_runner_provider_->HasImplThread();
3752 } 3759 }
3753 3760
3754 } // namespace cc 3761 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698