Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: third_party/WebKit/public/platform/WebCompositorMutableState.h

Issue 1447893002: compositor-worker: Introduce WebCompositorMutableState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698