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

Side by Side Diff: Source/core/animation/Animation.h

Issue 1302463002: Make classes and structures in Source/core/animation fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | Source/core/animation/AnimationClock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 class CORE_EXPORT Animation final 54 class CORE_EXPORT Animation final
55 : public EventTargetWithInlineData 55 : public EventTargetWithInlineData
56 , public RefCountedWillBeNoBase<Animation> 56 , public RefCountedWillBeNoBase<Animation>
57 , public ActiveDOMObject 57 , public ActiveDOMObject
58 , public WebCompositorAnimationDelegate 58 , public WebCompositorAnimationDelegate
59 , public WebCompositorAnimationPlayerClient { 59 , public WebCompositorAnimationPlayerClient {
60 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
61 REFCOUNTED_EVENT_TARGET(Animation); 61 REFCOUNTED_EVENT_TARGET(Animation);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation); 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation);
63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(Animation);
63 public: 64 public:
64 enum AnimationPlayState { 65 enum AnimationPlayState {
65 Idle, 66 Idle,
66 Pending, 67 Pending,
67 Running, 68 Running,
68 Paused, 69 Paused,
69 Finished 70 Finished
70 }; 71 };
71 72
72 ~Animation(); 73 ~Animation();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 RefPtrWillBeMember<Event> m_pendingFinishedEvent; 253 RefPtrWillBeMember<Event> m_pendingFinishedEvent;
253 254
254 enum CompositorAction { 255 enum CompositorAction {
255 None, 256 None,
256 Pause, 257 Pause,
257 Start, 258 Start,
258 PauseThenStart 259 PauseThenStart
259 }; 260 };
260 261
261 class CompositorState { 262 class CompositorState {
263 WTF_MAKE_FAST_ALLOCATED(CompositorState);
264 WTF_MAKE_NONCOPYABLE(CompositorState);
262 public: 265 public:
263 CompositorState(Animation& animation) 266 CompositorState(Animation& animation)
264 : startTime(animation.m_startTime) 267 : startTime(animation.m_startTime)
265 , holdTime(animation.m_holdTime) 268 , holdTime(animation.m_holdTime)
266 , playbackRate(animation.m_playbackRate) 269 , playbackRate(animation.m_playbackRate)
267 , effectChanged(false) 270 , effectChanged(false)
268 , pendingAction(Start) 271 , pendingAction(Start)
269 { } 272 { }
270 double startTime; 273 double startTime;
271 double holdTime; 274 double holdTime;
(...skipping 28 matching lines...) Expand all
300 303
301 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; 304 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer;
302 305
303 bool m_currentTimePending; 306 bool m_currentTimePending;
304 bool m_stateIsBeingUpdated; 307 bool m_stateIsBeingUpdated;
305 }; 308 };
306 309
307 } // namespace blink 310 } // namespace blink
308 311
309 #endif // Animation_h 312 #endif // Animation_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationClock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698