Index: third_party/WebKit/public/platform/WebCompositorMutableState.h |
diff --git a/third_party/WebKit/public/platform/WebCompositorMutableState.h b/third_party/WebKit/public/platform/WebCompositorMutableState.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a4d57d2d16aae1d3838b1ca2c200cb3a3de7ec3c |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/WebCompositorMutableState.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WebCompositorMutableState_h |
+#define WebCompositorMutableState_h |
+ |
+#include <cstdint> |
+ |
+class SkMatrix44; |
+ |
+namespace blink { |
+ |
+// This class wraps the compositor-owned, mutable state for a single element. |
+class WebCompositorMutableState { |
+public: |
+ virtual ~WebCompositorMutableState() { } |
+ |
+ virtual double opacity() const = 0; |
+ virtual void setOpacity(double) = 0; |
+ |
+ virtual const SkMatrix44& transform() const = 0; |
+ virtual void setTransform(const SkMatrix44&) = 0; |
+ |
+ virtual double scrollLeft() const = 0; |
+ virtual void setScrollLeft(double) = 0; |
+ |
+ virtual double scrollTop() const = 0; |
+ virtual void setScrollTop(double) = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebCompositorMutableState_h |