OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "public/platform/WebCompositorSupport.h" | 45 #include "public/platform/WebCompositorSupport.h" |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
51 bool CompareAnimations(const Member<Animation>& left, | 51 bool CompareAnimations(const Member<Animation>& left, |
52 const Member<Animation>& right) { | 52 const Member<Animation>& right) { |
53 return Animation::HasLowerPriority(left.Get(), right.Get()); | 53 return Animation::HasLowerPriority(left.Get(), right.Get()); |
54 } | 54 } |
55 } | 55 } // namespace |
56 | 56 |
57 // This value represents 1 frame at 30Hz plus a little bit of wiggle room. | 57 // This value represents 1 frame at 30Hz plus a little bit of wiggle room. |
58 // TODO: Plumb a nominal framerate through and derive this value from that. | 58 // TODO: Plumb a nominal framerate through and derive this value from that. |
59 const double AnimationTimeline::kMinimumDelay = 0.04; | 59 const double AnimationTimeline::kMinimumDelay = 0.04; |
60 | 60 |
61 AnimationTimeline* AnimationTimeline::Create(Document* document, | 61 AnimationTimeline* AnimationTimeline::Create(Document* document, |
62 PlatformTiming* timing) { | 62 PlatformTiming* timing) { |
63 return new AnimationTimeline(document, timing); | 63 return new AnimationTimeline(document, timing); |
64 } | 64 } |
65 | 65 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 318 } |
319 | 319 |
320 DEFINE_TRACE(AnimationTimeline) { | 320 DEFINE_TRACE(AnimationTimeline) { |
321 visitor->Trace(document_); | 321 visitor->Trace(document_); |
322 visitor->Trace(timing_); | 322 visitor->Trace(timing_); |
323 visitor->Trace(animations_needing_update_); | 323 visitor->Trace(animations_needing_update_); |
324 visitor->Trace(animations_); | 324 visitor->Trace(animations_); |
325 } | 325 } |
326 | 326 |
327 } // namespace blink | 327 } // namespace blink |
OLD | NEW |