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

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

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 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 /* 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 , m_zeroTime(0) // 0 is used by unit tests which cannot initialize from the loader 69 , m_zeroTime(0) // 0 is used by unit tests which cannot initialize from the loader
70 , m_zeroTimeInitialized(false) 70 , m_zeroTimeInitialized(false)
71 , m_playbackRate(1) 71 , m_playbackRate(1)
72 , m_lastCurrentTimeInternal(0) 72 , m_lastCurrentTimeInternal(0)
73 { 73 {
74 if (!timing) 74 if (!timing)
75 m_timing = adoptPtrWillBeNoop(new AnimationTimelineTiming(this)); 75 m_timing = adoptPtrWillBeNoop(new AnimationTimelineTiming(this));
76 else 76 else
77 m_timing = timing; 77 m_timing = timing;
78 78
79 if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platfor m::current()->compositorSupport()) 79 m_compositorTimeline = adoptPtr(Platform::current()->compositorSupport()->cr eateAnimationTimeline());
80 m_compositorTimeline = adoptPtr(Platform::current()->compositorSupport() ->createAnimationTimeline());
81 80
82 ASSERT(document); 81 ASSERT(document);
83 } 82 }
84 83
85 AnimationTimeline::~AnimationTimeline() 84 AnimationTimeline::~AnimationTimeline()
86 { 85 {
87 #if !ENABLE(OILPAN) 86 #if !ENABLE(OILPAN)
88 for (const auto& player : m_players) 87 for (const auto& player : m_players)
89 player->detachFromTimeline(); 88 player->detachFromTimeline();
90 #endif 89 #endif
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 { 318 {
320 #if ENABLE(OILPAN) 319 #if ENABLE(OILPAN)
321 visitor->trace(m_document); 320 visitor->trace(m_document);
322 visitor->trace(m_timing); 321 visitor->trace(m_timing);
323 visitor->trace(m_playersNeedingUpdate); 322 visitor->trace(m_playersNeedingUpdate);
324 visitor->trace(m_players); 323 visitor->trace(m_players);
325 #endif 324 #endif
326 } 325 }
327 326
328 } // namespace 327 } // namespace
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationPlayer.cpp ('k') | Source/core/animation/CompositorAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698