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

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

Issue 208263004: Move TraceEvent.h from platform/ to wtf/ Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/animation/DocumentTimeline.h" 32 #include "core/animation/DocumentTimeline.h"
33 33
34 #include "core/animation/ActiveAnimations.h" 34 #include "core/animation/ActiveAnimations.h"
35 #include "core/animation/AnimationClock.h" 35 #include "core/animation/AnimationClock.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/frame/FrameView.h" 37 #include "core/frame/FrameView.h"
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 #include "platform/TraceEvent.h" 39 #include "wtf/TraceEvent.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 // This value represents 1 frame at 30Hz plus a little bit of wiggle room. 43 // This value represents 1 frame at 30Hz plus a little bit of wiggle room.
44 // TODO: Plumb a nominal framerate through and derive this value from that. 44 // TODO: Plumb a nominal framerate through and derive this value from that.
45 const double DocumentTimeline::s_minimumDelay = 0.04; 45 const double DocumentTimeline::s_minimumDelay = 0.04;
46 46
47 47
48 PassRefPtr<DocumentTimeline> DocumentTimeline::create(Document* document, PassOw nPtr<PlatformTiming> timing) 48 PassRefPtr<DocumentTimeline> DocumentTimeline::create(Document* document, PassOw nPtr<PlatformTiming> timing)
49 { 49 {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 count += (timedItem && (timedItem->isCurrent() || timedItem->isInEff ect())); 181 count += (timedItem && (timedItem->isCurrent() || timedItem->isInEff ect()));
182 } 182 }
183 return count; 183 return count;
184 } 184 }
185 185
186 void DocumentTimeline::detachFromDocument() { 186 void DocumentTimeline::detachFromDocument() {
187 m_document = 0; 187 m_document = 0;
188 } 188 }
189 189
190 } // namespace 190 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698