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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositorMutator.h

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: Remove unnecessary PLATFORM_EXPORT Created 3 years, 10 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CompositorMutator_h 5 #ifndef CompositorMutator_h
6 #define CompositorMutator_h 6 #define CompositorMutator_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CompositorMutableStateProvider; 12 class CompositorMutableStateProvider;
13 13
14 class CompositorMutator : public GarbageCollectedFinalized<CompositorMutator> { 14 class CompositorMutator : public GarbageCollectedFinalized<CompositorMutator> {
15 public: 15 public:
16 virtual ~CompositorMutator() {} 16 virtual ~CompositorMutator() {}
17 17
18 DEFINE_INLINE_VIRTUAL_TRACE() {} 18 DEFINE_INLINE_VIRTUAL_TRACE() {}
19 19
20 // Called from compositor thread to run the animation frame callbacks from all 20 // Called from compositor thread to run the animation frame callbacks from all
21 // connected CompositorWorkers. 21 // connected CompositorWorkers and AnimationWorklets.
22 // Returns true if any animation callbacks requested an animation frame 22 // Returns true if any animation callbacks requested an animation frame
23 // (i.e. should be reinvoked next frame). 23 // (i.e. should be reinvoked next frame).
24 virtual bool mutate(double monotonicTimeNow, 24 virtual bool mutate(double monotonicTimeNow,
25 CompositorMutableStateProvider*) = 0; 25 CompositorMutableStateProvider*) = 0;
26 }; 26 };
27 27
28 } // namespace blink 28 } // namespace blink
29 29
30 #endif // CompositorMutator_h 30 #endif // CompositorMutator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698