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

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

Issue 2270273002: cc : Add OnFilterAnimated to effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 3899 matching lines...) Expand 10 before | Expand all | Expand 10 after
3910 3910
3911 void LayerTreeHostImpl::SetTreeLayerFilterMutated( 3911 void LayerTreeHostImpl::SetTreeLayerFilterMutated(
3912 ElementId element_id, 3912 ElementId element_id,
3913 LayerTreeImpl* tree, 3913 LayerTreeImpl* tree,
3914 const FilterOperations& filters) { 3914 const FilterOperations& filters) {
3915 if (!tree) 3915 if (!tree)
3916 return; 3916 return;
3917 3917
3918 LayerImpl* layer = tree->LayerByElementId(element_id); 3918 LayerImpl* layer = tree->LayerByElementId(element_id);
3919 if (layer) 3919 if (layer)
3920 layer->OnFilterAnimated(filters); 3920 tree->property_trees()->effect_tree.OnFilterAnimated(
3921 filters, layer->effect_tree_index(), tree);
jaydasika 2016/08/24 00:06:01 Will change this to use id_to_index_map after http
jaydasika 2016/08/24 22:08:46 Done.
3921 } 3922 }
3922 3923
3923 void LayerTreeHostImpl::SetTreeLayerOpacityMutated(ElementId element_id, 3924 void LayerTreeHostImpl::SetTreeLayerOpacityMutated(ElementId element_id,
3924 LayerTreeImpl* tree, 3925 LayerTreeImpl* tree,
3925 float opacity) { 3926 float opacity) {
3926 if (!tree) 3927 if (!tree)
3927 return; 3928 return;
3928 3929
3929 LayerImpl* layer = tree->LayerByElementId(element_id); 3930 LayerImpl* layer = tree->LayerByElementId(element_id);
3930 if (layer) 3931 if (layer)
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
4112 return task_runner_provider_->HasImplThread(); 4113 return task_runner_provider_->HasImplThread();
4113 } 4114 }
4114 4115
4115 bool LayerTreeHostImpl::CommitToActiveTree() const { 4116 bool LayerTreeHostImpl::CommitToActiveTree() const {
4116 // In single threaded mode we skip the pending tree and commit directly to the 4117 // In single threaded mode we skip the pending tree and commit directly to the
4117 // active tree. 4118 // active tree.
4118 return !task_runner_provider_->HasImplThread(); 4119 return !task_runner_provider_->HasImplThread();
4119 } 4120 }
4120 4121
4121 } // namespace cc 4122 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698