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

Side by Side Diff: cc/layer_impl.cc

Issue 11783037: Not for review: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wait for layout to complete before starting orphaned animations Created 7 years, 10 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/layer_impl.h ('k') | cc/layer_tree_host.h » ('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/layer_impl.h" 5 #include "cc/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/animation_registrar.h" 10 #include "cc/animation_registrar.h"
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) 568 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform)
569 { 569 {
570 setTransform(transform); 570 setTransform(transform);
571 } 571 }
572 572
573 bool LayerImpl::IsActive() const 573 bool LayerImpl::IsActive() const
574 { 574 {
575 return m_layerTreeImpl->IsActiveTree(); 575 return m_layerTreeImpl->IsActiveTree();
576 } 576 }
577 577
578 bool LayerImpl::IsOrphaned() const
579 {
580 return false;
581 }
582
578 void LayerImpl::setBounds(const gfx::Size& bounds) 583 void LayerImpl::setBounds(const gfx::Size& bounds)
579 { 584 {
580 if (m_bounds == bounds) 585 if (m_bounds == bounds)
581 return; 586 return;
582 587
583 m_bounds = bounds; 588 m_bounds = bounds;
584 589
585 if (masksToBounds()) 590 if (masksToBounds())
586 noteLayerPropertyChangedForSubtree(); 591 noteLayerPropertyChangedForSubtree();
587 else 592 else
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 } 962 }
958 963
959 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) 964 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer)
960 { 965 {
961 m_verticalScrollbarLayer = scrollbarLayer; 966 m_verticalScrollbarLayer = scrollbarLayer;
962 if (m_verticalScrollbarLayer) 967 if (m_verticalScrollbarLayer)
963 m_verticalScrollbarLayer->setScrollLayerId(id()); 968 m_verticalScrollbarLayer->setScrollLayerId(id());
964 } 969 }
965 970
966 } // namespace cc 971 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698