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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 CompositorMutableState_h
6 #define CompositorMutableState_h
7
8 #include "platform/PlatformExport.h"
9
10 class SkMatrix44;
11
12 namespace cc {
13 class LayerImpl;
14 } // namespace cc
15
16 namespace blink {
17
18 class CompositorMutation;
19
20 // This class wraps the compositor-owned, mutable state for a single element.
21 class PLATFORM_EXPORT CompositorMutableState {
22 public:
23 CompositorMutableState(CompositorMutation*, cc::LayerImpl* main, cc::LayerIm pl* scroll);
24 ~CompositorMutableState();
25
26 double opacity() const;
27 void setOpacity(double);
28
29 const SkMatrix44& transform() const;
30 void setTransform(const SkMatrix44&);
31
32 double scrollLeft() const;
33 void setScrollLeft(double);
34
35 double scrollTop() const;
36 void setScrollTop(double);
37
38 private:
39 CompositorMutation* m_mutation;
40 cc::LayerImpl* m_mainLayer;
41 cc::LayerImpl* m_scrollLayer;
42 };
43
44 } // namespace blink
45
46 #endif // CompositorMutableState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698