OLD | NEW |
(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 CompositorMutableState_h |
| 6 #define CompositorMutableState_h |
| 7 |
| 8 #include "platform/PlatformExport.h" |
| 9 |
| 10 class SkMatrix44; |
| 11 |
| 12 namespace cc { |
| 13 class LayerImpl; |
| 14 } // namespace cc |
| 15 |
| 16 namespace blink { |
| 17 |
| 18 class CompositorMutation; |
| 19 |
| 20 // This class wraps the compositor-owned, mutable state for a single element. |
| 21 class PLATFORM_EXPORT CompositorMutableState { |
| 22 public: |
| 23 CompositorMutableState(CompositorMutation*, cc::LayerImpl* main, cc::LayerIm
pl* scroll); |
| 24 ~CompositorMutableState(); |
| 25 |
| 26 double opacity() const; |
| 27 void setOpacity(double); |
| 28 |
| 29 const SkMatrix44& transform() const; |
| 30 void setTransform(const SkMatrix44&); |
| 31 |
| 32 double scrollLeft() const; |
| 33 void setScrollLeft(double); |
| 34 |
| 35 double scrollTop() const; |
| 36 void setScrollTop(double); |
| 37 |
| 38 private: |
| 39 CompositorMutation* m_mutation; |
| 40 cc::LayerImpl* m_mainLayer; |
| 41 cc::LayerImpl* m_scrollLayer; |
| 42 }; |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // CompositorMutableState_h |
OLD | NEW |