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

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: rebase on master 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
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 3626 matching lines...) Expand 10 before | Expand all | Expand 10 after
3637 LayerTreeImpl* tree, 3637 LayerTreeImpl* tree,
3638 bool is_animating) { 3638 bool is_animating) {
3639 if (!tree) 3639 if (!tree)
3640 return; 3640 return;
3641 3641
3642 LayerAnimationValueObserver* layer = tree->LayerById(layer_id); 3642 LayerAnimationValueObserver* layer = tree->LayerById(layer_id);
3643 if (layer) 3643 if (layer)
3644 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating); 3644 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating);
3645 } 3645 }
3646 3646
3647 bool LayerTreeHostImpl::AnimationsPreserveAxisAlignment(
3648 const LayerImpl* layer) const {
3649 return animation_host_
3650 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id())
3651 : true;
3652 }
3653
3647 void LayerTreeHostImpl::SetLayerFilterMutated(int layer_id, 3654 void LayerTreeHostImpl::SetLayerFilterMutated(int layer_id,
3648 LayerTreeType tree_type, 3655 LayerTreeType tree_type,
3649 const FilterOperations& filters) { 3656 const FilterOperations& filters) {
3650 if (tree_type == LayerTreeType::ACTIVE) { 3657 if (tree_type == LayerTreeType::ACTIVE) {
3651 SetTreeLayerFilterMutated(layer_id, active_tree(), filters); 3658 SetTreeLayerFilterMutated(layer_id, active_tree(), filters);
3652 } else { 3659 } else {
3653 SetTreeLayerFilterMutated(layer_id, pending_tree(), filters); 3660 SetTreeLayerFilterMutated(layer_id, pending_tree(), filters);
3654 SetTreeLayerFilterMutated(layer_id, recycle_tree(), filters); 3661 SetTreeLayerFilterMutated(layer_id, recycle_tree(), filters);
3655 } 3662 }
3656 } 3663 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3723 return task_runner_provider_->HasImplThread(); 3730 return task_runner_provider_->HasImplThread();
3724 } 3731 }
3725 3732
3726 bool LayerTreeHostImpl::CommitToActiveTree() const { 3733 bool LayerTreeHostImpl::CommitToActiveTree() const {
3727 // In single threaded mode we skip the pending tree and commit directly to the 3734 // In single threaded mode we skip the pending tree and commit directly to the
3728 // active tree. 3735 // active tree.
3729 return !task_runner_provider_->HasImplThread(); 3736 return !task_runner_provider_->HasImplThread();
3730 } 3737 }
3731 3738
3732 } // namespace cc 3739 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698