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

Side by Side Diff: cc/animation/layer_animation_controller.cc

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/animation/layer_animation_controller.h" 5 #include "cc/animation/layer_animation_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "cc/animation/animation.h" 9 #include "cc/animation/animation.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 } 761 }
762 762
763 void LayerAnimationController::NotifyObserversFilterAnimated( 763 void LayerAnimationController::NotifyObserversFilterAnimated(
764 const FilterOperations& filters) { 764 const FilterOperations& filters) {
765 FOR_EACH_OBSERVER(LayerAnimationValueObserver, 765 FOR_EACH_OBSERVER(LayerAnimationValueObserver,
766 value_observers_, 766 value_observers_,
767 OnFilterAnimated(filters)); 767 OnFilterAnimated(filters));
768 } 768 }
769 769
770 void LayerAnimationController::NotifyObserversScrollOffsetAnimated( 770 void LayerAnimationController::NotifyObserversScrollOffsetAnimated(
771 gfx::Vector2dF scroll_offset) { 771 const gfx::Vector2dF& scroll_offset) {
772 FOR_EACH_OBSERVER(LayerAnimationValueObserver, 772 FOR_EACH_OBSERVER(LayerAnimationValueObserver,
773 value_observers_, 773 value_observers_,
774 OnScrollOffsetAnimated(scroll_offset)); 774 OnScrollOffsetAnimated(scroll_offset));
775 } 775 }
776 776
777 void LayerAnimationController::NotifyObserversAnimationWaitingForDeletion() { 777 void LayerAnimationController::NotifyObserversAnimationWaitingForDeletion() {
778 FOR_EACH_OBSERVER(LayerAnimationValueObserver, 778 FOR_EACH_OBSERVER(LayerAnimationValueObserver,
779 value_observers_, 779 value_observers_,
780 OnAnimationWaitingForDeletion()); 780 OnAnimationWaitingForDeletion());
781 } 781 }
(...skipping 13 matching lines...) Expand all
795 value_observers_); 795 value_observers_);
796 LayerAnimationValueObserver* obs; 796 LayerAnimationValueObserver* obs;
797 while ((obs = it.GetNext()) != NULL) 797 while ((obs = it.GetNext()) != NULL)
798 if (obs->IsActive()) 798 if (obs->IsActive())
799 return true; 799 return true;
800 } 800 }
801 return false; 801 return false;
802 } 802 }
803 803
804 } // namespace cc 804 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_controller.h ('k') | cc/animation/layer_animation_value_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698