OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CompositorMutableState_h | 5 #ifndef CompositorMutableState_h |
6 #define CompositorMutableState_h | 6 #define CompositorMutableState_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 | 9 |
10 class SkMatrix44; | 10 class SkMatrix44; |
(...skipping 13 matching lines...) Expand all Loading... |
24 cc::LayerImpl* main, | 24 cc::LayerImpl* main, |
25 cc::LayerImpl* scroll); | 25 cc::LayerImpl* scroll); |
26 ~CompositorMutableState(); | 26 ~CompositorMutableState(); |
27 | 27 |
28 double opacity() const; | 28 double opacity() const; |
29 void setOpacity(double); | 29 void setOpacity(double); |
30 | 30 |
31 const SkMatrix44& transform() const; | 31 const SkMatrix44& transform() const; |
32 void setTransform(const SkMatrix44&); | 32 void setTransform(const SkMatrix44&); |
33 | 33 |
34 double scrollLeft() const; | 34 float scrollLeft() const; |
35 void setScrollLeft(double); | 35 void setScrollLeft(float); |
36 | 36 |
37 double scrollTop() const; | 37 float scrollTop() const; |
38 void setScrollTop(double); | 38 void setScrollTop(float); |
39 | 39 |
40 private: | 40 private: |
41 CompositorMutation* m_mutation; | 41 CompositorMutation* m_mutation; |
42 cc::LayerImpl* m_mainLayer; | 42 cc::LayerImpl* m_mainLayer; |
43 cc::LayerImpl* m_scrollLayer; | 43 cc::LayerImpl* m_scrollLayer; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace blink | 46 } // namespace blink |
47 | 47 |
48 #endif // CompositorMutableState_h | 48 #endif // CompositorMutableState_h |
OLD | NEW |