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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp

Issue 1663963004: Blink Compositor Animation: Use PassOwnPtr in CompositorFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@curves
Patch Set: Created 4 years, 10 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 , m_playbackRate(1) 73 , m_playbackRate(1)
74 , m_lastCurrentTimeInternal(0) 74 , m_lastCurrentTimeInternal(0)
75 { 75 {
76 ThreadState::current()->registerPreFinalizer(this); 76 ThreadState::current()->registerPreFinalizer(this);
77 if (!timing) 77 if (!timing)
78 m_timing = new AnimationTimelineTiming(this); 78 m_timing = new AnimationTimelineTiming(this);
79 else 79 else
80 m_timing = timing; 80 m_timing = timing;
81 81
82 if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platfor m::current()->isThreadedAnimationEnabled()) 82 if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platfor m::current()->isThreadedAnimationEnabled())
83 m_compositorTimeline = adoptPtr(CompositorFactory::current().createAnima tionTimeline()); 83 m_compositorTimeline = CompositorFactory::current().createAnimationTimel ine();
84 84
85 ASSERT(document); 85 ASSERT(document);
86 } 86 }
87 87
88 AnimationTimeline::~AnimationTimeline() 88 AnimationTimeline::~AnimationTimeline()
89 { 89 {
90 } 90 }
91 91
92 void AnimationTimeline::dispose() 92 void AnimationTimeline::dispose()
93 { 93 {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 DEFINE_TRACE(AnimationTimeline) 358 DEFINE_TRACE(AnimationTimeline)
359 { 359 {
360 visitor->trace(m_document); 360 visitor->trace(m_document);
361 visitor->trace(m_timing); 361 visitor->trace(m_timing);
362 visitor->trace(m_animationsNeedingUpdate); 362 visitor->trace(m_animationsNeedingUpdate);
363 visitor->trace(m_animations); 363 visitor->trace(m_animations);
364 } 364 }
365 365
366 } // namespace blink 366 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698