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

Side by Side 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: review response. Created 5 years 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 unified diff | Download patch
OLDNEW
(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 CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
7
8 #include "cc/blink/cc_blink_export.h"
9
10 #include "third_party/WebKit/public/platform/WebCompositorMutableState.h"
11
12 namespace cc {
13 class LayerImpl;
14 struct LayerTreeMutation;
15 }
16
17 namespace cc_blink {
18
19 class WebCompositorMutableStateImpl : public blink::WebCompositorMutableState {
20 public:
21 WebCompositorMutableStateImpl(cc::LayerTreeMutation* mutation,
22 cc::LayerImpl* main_layer,
23 cc::LayerImpl* scroll_layer);
24 ~WebCompositorMutableStateImpl() override;
25
26 double opacity() const override;
27 void setOpacity(double opacity) override;
28
29 const SkMatrix44& transform() const override;
30 void setTransform(const SkMatrix44& transform) override;
31
32 double scrollLeft() const override;
33 void setScrollLeft(double scroll_left) override;
34
35 double scrollTop() const override;
36 void setScrollTop(double scroll_top) override;
37
38 private:
39 cc::LayerTreeMutation* mutation_;
40 cc::LayerImpl* main_layer_;
41 cc::LayerImpl* scroll_layer_;
42 };
43
44 } // namespace cc_blink
45
46 #endif // CC_BLINK_WEB_COMPOSITOR_MUTABLE_STATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698