| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/gfx/compositor/layer_animator.h" | 5 #include "ui/gfx/compositor/layer_animator.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
| 9 #include "ui/base/animation/animation_container.h" | 9 #include "ui/base/animation/animation_container.h" |
| 10 #include "ui/base/animation/multi_animation.h" | 10 #include "ui/base/animation/multi_animation.h" |
| 11 #include "ui/gfx/compositor/compositor.h" | 11 #include "ui/gfx/compositor/compositor.h" |
| 12 #include "ui/gfx/compositor/layer.h" | 12 #include "ui/gfx/compositor/layer.h" |
| 13 #include "ui/gfx/transform.h" | 13 #include "ui/gfx/transform.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 void SetMatrixElement(SkMatrix44& matrix, int index, SkMScalar value) { | 18 void SetMatrixElement(SkMatrix44& matrix, int index, SkMScalar value) { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 const ui::MultiAnimation* animation) { | 180 const ui::MultiAnimation* animation) { |
| 181 for (Elements::iterator i = elements_.begin(); i != elements_.end(); ++i) { | 181 for (Elements::iterator i = elements_.begin(); i != elements_.end(); ++i) { |
| 182 if (i->second.animation == animation) | 182 if (i->second.animation == animation) |
| 183 return i; | 183 return i; |
| 184 } | 184 } |
| 185 NOTREACHED(); | 185 NOTREACHED(); |
| 186 return elements_.end(); | 186 return elements_.end(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace ui | 189 } // namespace ui |
| OLD | NEW |