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

Side by Side Diff: sky/engine/core/animation/AnimationTimeline.cpp

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | sky/engine/core/animation/DocumentAnimations.cpp » ('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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 m_timer.startOneShot(duration, FROM_HERE); 148 m_timer.startOneShot(duration, FROM_HERE);
149 } 149 }
150 150
151 void AnimationTimeline::AnimationTimelineTiming::cancelWake() 151 void AnimationTimeline::AnimationTimelineTiming::cancelWake()
152 { 152 {
153 m_timer.stop(); 153 m_timer.stop();
154 } 154 }
155 155
156 void AnimationTimeline::AnimationTimelineTiming::serviceOnNextFrame() 156 void AnimationTimeline::AnimationTimelineTiming::serviceOnNextFrame()
157 { 157 {
158 if (m_timeline->m_document && m_timeline->m_document->view()) 158 if (m_timeline->m_document)
159 m_timeline->m_document->view()->scheduleAnimation(); 159 m_timeline->m_document->scheduleVisualUpdate();
160 } 160 }
161 161
162 double AnimationTimeline::currentTime(bool& isNull) 162 double AnimationTimeline::currentTime(bool& isNull)
163 { 163 {
164 return currentTimeInternal(isNull) * 1000; 164 return currentTimeInternal(isNull) * 1000;
165 } 165 }
166 166
167 double AnimationTimeline::currentTimeInternal(bool& isNull) 167 double AnimationTimeline::currentTimeInternal(bool& isNull)
168 { 168 {
169 if (!m_document) { 169 if (!m_document) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 #if !ENABLE(OILPAN) 219 #if !ENABLE(OILPAN)
220 void AnimationTimeline::detachFromDocument() 220 void AnimationTimeline::detachFromDocument()
221 { 221 {
222 // FIXME: AnimationTimeline should keep Document alive. 222 // FIXME: AnimationTimeline should keep Document alive.
223 m_document = nullptr; 223 m_document = nullptr;
224 } 224 }
225 #endif 225 #endif
226 226
227 } // namespace 227 } // namespace
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/animation/DocumentAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698