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

Side by Side Diff: cc/layer_impl.cc

Issue 11830056: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@MakeLayerTreeHostAnimateLayersTakeWallClockTime
Patch Set: Created 7 years, 11 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
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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) 493 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform)
494 { 494 {
495 setTransform(transform); 495 setTransform(transform);
496 } 496 }
497 497
498 bool LayerImpl::IsActive() const 498 bool LayerImpl::IsActive() const
499 { 499 {
500 return m_layerTreeImpl->IsActiveTree(); 500 return m_layerTreeImpl->IsActiveTree();
501 } 501 }
502 502
503 bool LayerImpl::IsOrphaned() const
504 {
505 return false;
506 }
507
503 void LayerImpl::setBounds(const gfx::Size& bounds) 508 void LayerImpl::setBounds(const gfx::Size& bounds)
504 { 509 {
505 if (m_bounds == bounds) 510 if (m_bounds == bounds)
506 return; 511 return;
507 512
508 m_bounds = bounds; 513 m_bounds = bounds;
509 514
510 if (masksToBounds()) 515 if (masksToBounds())
511 noteLayerPropertyChangedForSubtree(); 516 noteLayerPropertyChangedForSubtree();
512 else 517 else
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 if (m_layerTreeImpl->settings().useLinearFadeScrollbarAnimator) 862 if (m_layerTreeImpl->settings().useLinearFadeScrollbarAnimator)
858 m_scrollbarAnimationController = createScrollbarAnimationControllerW ithFade(this); 863 m_scrollbarAnimationController = createScrollbarAnimationControllerW ithFade(this);
859 else 864 else
860 m_scrollbarAnimationController = ScrollbarAnimationController::creat e(this); 865 m_scrollbarAnimationController = ScrollbarAnimationController::creat e(this);
861 } 866 }
862 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); 867 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer);
863 m_scrollbarAnimationController->updateScrollOffset(this); 868 m_scrollbarAnimationController->updateScrollOffset(this);
864 } 869 }
865 870
866 } // namespace cc 871 } // namespace cc
OLDNEW
« cc/layer_animation_controller.cc ('K') | « cc/layer_impl.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698