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

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

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/element_animations.h" 5 #include "cc/animation/element_animations.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "cc/animation/animation_delegate.h" 13 #include "cc/animation/animation_delegate.h"
14 #include "cc/animation/animation_events.h" 14 #include "cc/animation/animation_events.h"
15 #include "cc/animation/animation_host.h" 15 #include "cc/animation/animation_host.h"
16 #include "cc/animation/animation_player.h" 16 #include "cc/animation/animation_player.h"
17 #include "cc/animation/keyframed_animation_curve.h" 17 #include "cc/animation/keyframed_animation_curve.h"
18 #include "cc/base/filter_operations.h" 18 #include "cc/base/filter_operations.h"
19 #include "cc/trees/mutator_host_client.h" 19 #include "cc/trees/mutator_host_client.h"
20 #include "ui/gfx/geometry/box_f.h" 20 #include "ui/gfx/geometry/box_f.h"
21 21
22 namespace cc { 22 namespace cc {
23 23
24 scoped_refptr<ElementAnimations> ElementAnimations::Create() { 24 scoped_refptr<ElementAnimations> ElementAnimations::Create() {
25 return make_scoped_refptr(new ElementAnimations()); 25 return make_scoped_refptr(new ElementAnimations());
26 } 26 }
27 27
28 ElementAnimations::ElementAnimations() 28 ElementAnimations::ElementAnimations()
29 : animation_host_(), 29 : animation_host_(),
30 element_id_(),
31 has_element_in_active_list_(false), 30 has_element_in_active_list_(false),
32 has_element_in_pending_list_(false), 31 has_element_in_pending_list_(false),
33 needs_push_properties_(false), 32 needs_push_properties_(false),
34 needs_update_impl_client_state_(false) {} 33 needs_update_impl_client_state_(false) {}
35 34
36 ElementAnimations::~ElementAnimations() {} 35 ElementAnimations::~ElementAnimations() {}
37 36
38 void ElementAnimations::SetAnimationHost(AnimationHost* host) { 37 void ElementAnimations::SetAnimationHost(AnimationHost* host) {
39 animation_host_ = host; 38 animation_host_ = host;
40 } 39 }
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 if (animation_host()) { 487 if (animation_host()) {
489 DCHECK(animation_host()->mutator_host_client()); 488 DCHECK(animation_host()->mutator_host_client());
490 return animation_host()->mutator_host_client()->GetScrollOffsetForAnimation( 489 return animation_host()->mutator_host_client()->GetScrollOffsetForAnimation(
491 element_id()); 490 element_id());
492 } 491 }
493 492
494 return gfx::ScrollOffset(); 493 return gfx::ScrollOffset();
495 } 494 }
496 495
497 } // namespace cc 496 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698