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

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

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CompositorMutatorClient_h
6 #define CompositorMutatorClient_h
7
8 #include "base/memory/scoped_ptr.h"
9 #include "platform/PlatformExport.h"
10 #include "public/platform/WebCompositorMutatorClient.h"
11 #include "wtf/OwnPtr.h"
12
13 namespace blink {
14
15 class CompositorMutator;
16 struct CompositorMutations;
17
18 class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClien t {
19 public:
20 explicit CompositorMutatorClient(CompositorMutator*);
21 virtual ~CompositorMutatorClient();
22
23 void setNeedsMutate();
24
25 // cc::LayerTreeMutator
26 bool Mutate(base::TimeTicks timeNow, cc::LayerTreeImpl* state) override;
27 void SetClient(cc::LayerTreeMutatorClient* client) override;
28 scoped_ptr<cc::LayerTreeMutations> TakeMutations() override;
29
30 private:
31 cc::LayerTreeMutatorClient* m_client;
32 CompositorMutator* m_mutator;
33 OwnPtr<CompositorMutations> m_mutations;
34 };
35
36 } // namespace blink
37
38 #endif // CompositorMutatorClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698