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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableState.h

Issue 1599673002: compositor-worker: Remove code from cc_blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix blink_platform_unittests 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
Index: third_party/WebKit/Source/platform/graphics/CompositorMutableState.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.h b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.h
new file mode 100644
index 0000000000000000000000000000000000000000..4838d66073dbd15edf82b4253beb53af5e0981e2
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.h
@@ -0,0 +1,46 @@
+// Copyright 2016 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 CompositorMutableState_h
+#define CompositorMutableState_h
+
+#include "platform/PlatformExport.h"
+
+class SkMatrix44;
+
+namespace cc {
+class LayerImpl;
+} // namespace cc
+
+namespace blink {
+
+class CompositorMutation;
+
+// This class wraps the compositor-owned, mutable state for a single element.
+class PLATFORM_EXPORT CompositorMutableState {
+public:
+ CompositorMutableState(CompositorMutation*, cc::LayerImpl* main, cc::LayerImpl* scroll);
+ ~CompositorMutableState();
+
+ double opacity() const;
+ void setOpacity(double);
+
+ const SkMatrix44& transform() const;
+ void setTransform(const SkMatrix44&);
+
+ double scrollLeft() const;
+ void setScrollLeft(double);
+
+ double scrollTop() const;
+ void setScrollTop(double);
+
+private:
+ CompositorMutation* m_mutation;
+ cc::LayerImpl* m_mainLayer;
+ cc::LayerImpl* m_scrollLayer;
+};
+
+} // namespace blink
+
+#endif // CompositorMutableState_h

Powered by Google App Engine
This is Rietveld 408576698