OLD | NEW |
(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/blink/cc_blink_export.h" |
| 11 |
| 12 #include "third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h
" |
| 13 |
| 14 namespace cc { |
| 15 class LayerTreeImpl; |
| 16 struct LayerTreeMutation; |
| 17 typedef base::hash_map<uint64_t, LayerTreeMutation> LayerTreeMutationMap; |
| 18 } // namespace cc |
| 19 |
| 20 namespace cc_blink { |
| 21 |
| 22 class WebCompositorMutableStateProviderImpl |
| 23 : public blink::WebCompositorMutableStateProvider { |
| 24 public: |
| 25 // TODO(vollick): after slimming paint v2, this will need to operate on |
| 26 // property trees, not the layer tree impl. |
| 27 // |
| 28 // The LayerTreeImpl and the LayerTreeMutationMap are both owned by caller. |
| 29 CC_BLINK_EXPORT WebCompositorMutableStateProviderImpl( |
| 30 cc::LayerTreeImpl* state, |
| 31 cc::LayerTreeMutationMap* mutations); |
| 32 |
| 33 CC_BLINK_EXPORT ~WebCompositorMutableStateProviderImpl() override; |
| 34 |
| 35 CC_BLINK_EXPORT blink::WebCompositorMutableState* getMutableStateFor( |
| 36 uint64_t element_id) override WARN_UNUSED_RESULT; |
| 37 |
| 38 private: |
| 39 cc::LayerTreeImpl* state_; |
| 40 cc::LayerTreeMutationMap* mutations_; |
| 41 }; |
| 42 |
| 43 } // namespace cc_blink |
| 44 |
| 45 #endif // CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_PROVIDER_IMPL_H_ |
OLD | NEW |