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

Unified Diff: cc/blink/web_compositor_mutable_state_impl.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/blink/cc_blink_tests.gyp ('k') | cc/blink/web_compositor_mutable_state_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_compositor_mutable_state_impl.h
diff --git a/cc/blink/web_compositor_mutable_state_impl.h b/cc/blink/web_compositor_mutable_state_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..b052eca876c08f48c03758ccd2d0663b4d1e8e53
--- /dev/null
+++ b/cc/blink/web_compositor_mutable_state_impl.h
@@ -0,0 +1,46 @@
+// 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 CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
+#define CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
+
+#include "cc/blink/cc_blink_export.h"
+
+#include "third_party/WebKit/public/platform/WebCompositorMutableState.h"
+
+namespace cc {
+class LayerImpl;
+class LayerTreeMutation;
+}
+
+namespace cc_blink {
+
+class WebCompositorMutableStateImpl : public blink::WebCompositorMutableState {
+ public:
+ WebCompositorMutableStateImpl(cc::LayerTreeMutation* mutation,
+ cc::LayerImpl* main_layer,
+ cc::LayerImpl* scroll_layer);
+ ~WebCompositorMutableStateImpl() override;
+
+ double opacity() const override;
+ void setOpacity(double opacity) override;
+
+ const SkMatrix44& transform() const override;
+ void setTransform(const SkMatrix44& transform) override;
+
+ double scrollLeft() const override;
+ void setScrollLeft(double scroll_left) override;
+
+ double scrollTop() const override;
+ void setScrollTop(double scroll_top) override;
+
+ private:
+ cc::LayerTreeMutation* mutation_;
+ cc::LayerImpl* main_layer_;
+ cc::LayerImpl* scroll_layer_;
+};
+
+} // namespace cc_blink
+
+#endif // CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
« no previous file with comments | « cc/blink/cc_blink_tests.gyp ('k') | cc/blink/web_compositor_mutable_state_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698