Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |