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 WebCompositorMutableState_h |
| 6 #define WebCompositorMutableState_h |
| 7 |
| 8 #include <cstdint> |
| 9 |
| 10 class SkMatrix44; |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // This class wraps the compositor-owned, mutable state for a single element. |
| 15 class WebCompositorMutableState { |
| 16 public: |
| 17 virtual ~WebCompositorMutableState() { } |
| 18 |
| 19 virtual double opacity() const = 0; |
| 20 virtual void setOpacity(double) = 0; |
| 21 |
| 22 virtual const SkMatrix44& transform() const = 0; |
| 23 virtual void setTransform(const SkMatrix44&) = 0; |
| 24 |
| 25 virtual double scrollLeft() const = 0; |
| 26 virtual void setScrollLeft(double) = 0; |
| 27 |
| 28 virtual double scrollTop() const = 0; |
| 29 virtual void setScrollTop(double) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // WebCompositorMutableState_h |
OLD | NEW |