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_IMPL_H_ |
| 6 #define CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_ |
| 7 |
| 8 #include "cc/blink/cc_blink_export.h" |
| 9 |
| 10 #include "third_party/WebKit/public/platform/WebCompositorMutableState.h" |
| 11 |
| 12 namespace cc { |
| 13 class LayerImpl; |
| 14 struct LayerTreeMutation; |
| 15 } |
| 16 |
| 17 namespace cc_blink { |
| 18 |
| 19 class WebCompositorMutableStateImpl : public blink::WebCompositorMutableState { |
| 20 public: |
| 21 WebCompositorMutableStateImpl(cc::LayerTreeMutation* mutation, |
| 22 cc::LayerImpl* main_layer, |
| 23 cc::LayerImpl* scroll_layer); |
| 24 ~WebCompositorMutableStateImpl() override; |
| 25 |
| 26 double opacity() const override; |
| 27 void setOpacity(double opacity) override; |
| 28 |
| 29 const SkMatrix44& transform() const override; |
| 30 void setTransform(const SkMatrix44& transform) override; |
| 31 |
| 32 double scrollLeft() const override; |
| 33 void setScrollLeft(double scroll_left) override; |
| 34 |
| 35 double scrollTop() const override; |
| 36 void setScrollTop(double scroll_top) override; |
| 37 |
| 38 private: |
| 39 cc::LayerTreeMutation* mutation_; |
| 40 cc::LayerImpl* main_layer_; |
| 41 cc::LayerImpl* scroll_layer_; |
| 42 }; |
| 43 |
| 44 } // namespace cc_blink |
| 45 |
| 46 #endif // CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_ |
OLD | NEW |