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

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

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring up oilpan support during compositor worker creation and oilpan the compositor mutator and pro… Created 4 years, 7 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 CompositorMutatorClient_h 5 #ifndef CompositorMutatorClient_h
6 #define CompositorMutatorClient_h 6 #define CompositorMutatorClient_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/heap/Handle.h"
9 #include "public/platform/WebCompositorMutatorClient.h" 10 #include "public/platform/WebCompositorMutatorClient.h"
10 #include "wtf/OwnPtr.h" 11 #include "wtf/OwnPtr.h"
11 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
16 class CompositorMutator;
15 struct CompositorMutations; 17 struct CompositorMutations;
16 class CompositorMutationsTarget; 18 class CompositorMutationsTarget;
17 19
18 class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClien t { 20 class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClien t {
19 public: 21 public:
20 CompositorMutatorClient(CompositorMutationsTarget*); 22 CompositorMutatorClient(CompositorMutator*, CompositorMutationsTarget*);
jbroman 2016/04/29 19:42:22 Is it or is it not okay for the CompositorMutator*
flackr 2016/05/03 22:24:54 The current CompositorMutatorClient tests just ver
jbroman 2016/05/04 17:59:00 Hmm. Alright, though it seems a little suspicious
flackr 2016/05/04 21:52:40 It's done. May as well have the stub in place and
21 virtual ~CompositorMutatorClient(); 23 virtual ~CompositorMutatorClient();
22 24
25 void setNeedsMutate();
26
23 // cc::LayerTreeMutator 27 // cc::LayerTreeMutator
28 bool Mutate(base::TimeTicks monotonicTime) override;
29 void SetClient(cc::LayerTreeMutatorClient*) override;
24 base::Closure TakeMutations() override; 30 base::Closure TakeMutations() override;
25 31
32 CompositorMutator* mutator() { return m_mutator.get(); }
33
26 void setMutationsForTesting(PassOwnPtr<CompositorMutations>); 34 void setMutationsForTesting(PassOwnPtr<CompositorMutations>);
27 private: 35 private:
36 cc::LayerTreeMutatorClient* m_client;
28 CompositorMutationsTarget* m_mutationsTarget; 37 CompositorMutationsTarget* m_mutationsTarget;
38 Persistent<CompositorMutator> m_mutator;
29 OwnPtr<CompositorMutations> m_mutations; 39 OwnPtr<CompositorMutations> m_mutations;
30 }; 40 };
31 41
32 } // namespace blink 42 } // namespace blink
33 43
34 #endif // CompositorMutatorClient_h 44 #endif // CompositorMutatorClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698