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

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorAnimations.h

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Rebase Created 3 years, 6 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 25 matching lines...) Expand all
36 #include "core/animation/EffectModel.h" 36 #include "core/animation/EffectModel.h"
37 #include "core/animation/Timing.h" 37 #include "core/animation/Timing.h"
38 #include "platform/animation/TimingFunction.h" 38 #include "platform/animation/TimingFunction.h"
39 #include "platform/wtf/Allocator.h" 39 #include "platform/wtf/Allocator.h"
40 #include "platform/wtf/Vector.h" 40 #include "platform/wtf/Vector.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class Animation; 44 class Animation;
45 class CompositorAnimation; 45 class CompositorAnimation;
46 class CompositorAnimationPlayer;
46 class Element; 47 class Element;
47 class FloatBox; 48 class FloatBox;
48 class KeyframeEffectModelBase; 49 class KeyframeEffectModelBase;
49 50
50 class CORE_EXPORT CompositorAnimations { 51 class CORE_EXPORT CompositorAnimations {
51 STATIC_ONLY(CompositorAnimations); 52 STATIC_ONLY(CompositorAnimations);
52 53
53 public: 54 public:
54 static bool IsCompositableProperty(CSSPropertyID); 55 static bool IsCompositableProperty(CSSPropertyID);
55 static const CSSPropertyID kCompositableProperties[7]; 56 static const CSSPropertyID kCompositableProperties[7];
56 57
57 static bool IsCandidateForAnimationOnCompositor( 58 static bool IsCandidateForAnimationOnCompositor(
58 const Timing&, 59 const Timing&,
59 const Element&, 60 const Element&,
60 const Animation*, 61 const Animation*,
61 const EffectModel&, 62 const EffectModel&,
62 double animation_playback_rate); 63 double animation_playback_rate);
63 static void CancelIncompatibleAnimationsOnCompositor(const Element&, 64 static void CancelIncompatibleAnimationsOnCompositor(const Element&,
64 const Animation&, 65 const Animation&,
65 const EffectModel&); 66 const EffectModel&);
66 static bool CanStartAnimationOnCompositor(const Element&); 67 static bool CanStartAnimationOnCompositor(const Element&);
67 static void StartAnimationOnCompositor(const Element&, 68 static void StartAnimationOnCompositor(const Element&,
68 int group, 69 int group,
69 double start_time, 70 double start_time,
70 double time_offset, 71 double time_offset,
71 const Timing&, 72 const Timing&,
72 const Animation&, 73 const Animation*,
74 CompositorAnimationPlayer*,
73 const EffectModel&, 75 const EffectModel&,
74 Vector<int>& started_animation_ids, 76 Vector<int>& started_animation_ids,
75 double animation_playback_rate); 77 double animation_playback_rate);
76 static void CancelAnimationOnCompositor(const Element&, 78 static void CancelAnimationOnCompositor(const Element&,
77 const Animation&, 79 const Animation&,
78 int id); 80 int id);
79 static void PauseAnimationForTestingOnCompositor(const Element&, 81 static void PauseAnimationForTestingOnCompositor(const Element&,
80 const Animation&, 82 const Animation&,
81 int id, 83 int id,
82 double pause_time); 84 double pause_time);
(...skipping 26 matching lines...) Expand all
109 double start_time, 111 double start_time,
110 double time_offset, 112 double time_offset,
111 const KeyframeEffectModelBase&, 113 const KeyframeEffectModelBase&,
112 Vector<std::unique_ptr<CompositorAnimation>>& animations, 114 Vector<std::unique_ptr<CompositorAnimation>>& animations,
113 double animation_playback_rate); 115 double animation_playback_rate);
114 }; 116 };
115 117
116 } // namespace blink 118 } // namespace blink
117 119
118 #endif 120 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698