| 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/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_ | |
| OLD | NEW |