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

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

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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 | « no previous file | cc/animation/keyframed_animation_curve_unittest.cc » ('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 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "cc/animation/keyframed_animation_curve.h" 7 #include "cc/animation/keyframed_animation_curve.h"
8 #include "ui/gfx/animation/tween.h" 8 #include "ui/gfx/animation/tween.h"
9 #include "ui/gfx/box_f.h" 9 #include "ui/gfx/geometry/box_f.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 namespace { 13 namespace {
14 14
15 template <class KeyframeType> 15 template <class KeyframeType>
16 void InsertKeyframe(scoped_ptr<KeyframeType> keyframe, 16 void InsertKeyframe(scoped_ptr<KeyframeType> keyframe,
17 ScopedPtrVector<KeyframeType>* keyframes) { 17 ScopedPtrVector<KeyframeType>* keyframes) {
18 // Usually, the keyframes will be added in order, so this loop would be 18 // Usually, the keyframes will be added in order, so this loop would be
19 // unnecessary and we should skip it if possible. 19 // unnecessary and we should skip it if possible.
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 bool KeyframedFilterAnimationCurve::HasFilterThatMovesPixels() const { 441 bool KeyframedFilterAnimationCurve::HasFilterThatMovesPixels() const {
442 for (size_t i = 0; i < keyframes_.size(); ++i) { 442 for (size_t i = 0; i < keyframes_.size(); ++i) {
443 if (keyframes_[i]->Value().HasFilterThatMovesPixels()) { 443 if (keyframes_[i]->Value().HasFilterThatMovesPixels()) {
444 return true; 444 return true;
445 } 445 }
446 } 446 }
447 return false; 447 return false;
448 } 448 }
449 449
450 } // namespace cc 450 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/animation/keyframed_animation_curve_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698