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

Side by Side Diff: cc/blink/web_compositor_mutable_state_provider_impl.h

Issue 1447893002: compositor-worker: Introduce WebCompositorMutableState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback. 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 2015 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 CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_PROVIDER_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_PROVIDER_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/containers/hash_tables.h"
10 #include "cc/animation/layer_tree_mutation.h"
11 #include "cc/blink/cc_blink_export.h"
12
13 #include "third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h "
14
15 namespace cc {
16 class LayerTreeImpl;
17 } // namespace cc
18
19 namespace cc_blink {
20
21 class WebCompositorMutableStateProviderImpl
22 : public blink::WebCompositorMutableStateProvider {
23 public:
24 // TODO(vollick): after slimming paint v2, this will need to operate on
25 // property trees, not the layer tree impl.
26 //
27 // The LayerTreeImpl and the LayerTreeMutationMap are both owned by caller.
28 CC_BLINK_EXPORT WebCompositorMutableStateProviderImpl(
29 cc::LayerTreeImpl* state,
30 cc::LayerTreeMutationMap* mutations);
31
32 CC_BLINK_EXPORT ~WebCompositorMutableStateProviderImpl() override;
33
34 CC_BLINK_EXPORT blink::WebPassOwnPtr<blink::WebCompositorMutableState>
35 getMutableStateFor(uint64_t element_id) override WARN_UNUSED_RESULT;
36
37 private:
38 cc::LayerTreeImpl* state_;
39 cc::LayerTreeMutationMap* mutations_;
40 };
41
42 } // namespace cc_blink
43
44 #endif // CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_compositor_mutable_state_impl_unittest.cc ('k') | cc/blink/web_compositor_mutable_state_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698