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

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

Issue 2188623006: Add pre finalizer to Animation to ensure compositor handles get cleaned up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove AnimationTimeline pre-finalizer Created 4 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class ExceptionState; 55 class ExceptionState;
56 56
57 class CORE_EXPORT Animation final 57 class CORE_EXPORT Animation final
58 : public EventTargetWithInlineData 58 : public EventTargetWithInlineData
59 , public ActiveScriptWrappable 59 , public ActiveScriptWrappable
60 , public ActiveDOMObject 60 , public ActiveDOMObject
61 , public CompositorAnimationDelegate 61 , public CompositorAnimationDelegate
62 , public CompositorAnimationPlayerClient { 62 , public CompositorAnimationPlayerClient {
63 DEFINE_WRAPPERTYPEINFO(); 63 DEFINE_WRAPPERTYPEINFO();
64 USING_GARBAGE_COLLECTED_MIXIN(Animation); 64 USING_GARBAGE_COLLECTED_MIXIN(Animation);
65 USING_PRE_FINALIZER(Animation, dispose);
65 public: 66 public:
66 enum AnimationPlayState { 67 enum AnimationPlayState {
67 Unset, 68 Unset,
68 Idle, 69 Idle,
69 Pending, 70 Pending,
70 Running, 71 Running,
71 Paused, 72 Paused,
72 Finished 73 Finished
73 }; 74 };
74 75
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 306
306 bool m_currentTimePending; 307 bool m_currentTimePending;
307 bool m_stateIsBeingUpdated; 308 bool m_stateIsBeingUpdated;
308 309
309 bool m_effectSuppressed; 310 bool m_effectSuppressed;
310 }; 311 };
311 312
312 } // namespace blink 313 } // namespace blink
313 314
314 #endif // Animation_h 315 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698