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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp

Issue 2762123004: cc: LayerTreeHostImpl uses element id to tick animations (Closed)
Patch Set: review comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
index 87c1ea20661c2dfbf718f444623743a0a1b67b24..468dac1f0309c083217961bdd4c4b9379db97fba 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
@@ -23,10 +23,8 @@ double CompositorMutableState::opacity() const {
void CompositorMutableState::setOpacity(double opacity) {
if (!m_mainLayer)
return;
- m_mainLayer->layer_tree_impl()
- ->property_trees()
- ->effect_tree.OnOpacityAnimated(opacity, m_mainLayer->effect_tree_index(),
- m_mainLayer->layer_tree_impl());
+ m_mainLayer->layer_tree_impl()->SetOpacityMutated(m_mainLayer->element_id(),
+ opacity);
m_mutation->setOpacity(opacity);
}
@@ -37,11 +35,8 @@ const SkMatrix44& CompositorMutableState::transform() const {
void CompositorMutableState::setTransform(const SkMatrix44& matrix) {
if (!m_mainLayer)
return;
- m_mainLayer->layer_tree_impl()
- ->property_trees()
- ->transform_tree.OnTransformAnimated(gfx::Transform(matrix),
- m_mainLayer->transform_tree_index(),
- m_mainLayer->layer_tree_impl());
+ m_mainLayer->layer_tree_impl()->SetTransformMutated(m_mainLayer->element_id(),
+ gfx::Transform(matrix));
m_mutation->setTransform(matrix);
}
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698