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

Side by Side 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: . 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 WebCompositorMutableState_h
6 #define WebCompositorMutableState_h
7
8 #include <cstdint>
9
10 class SkMatrix44;
11
12 namespace blink {
13
14 // This class wraps the compositor-owned, mutable state for a single element.
15 class WebCompositorMutableState {
16 public:
17 virtual ~WebCompositorMutableState() { }
18
19 virtual double opacity() const = 0;
20 virtual void setOpacity(double) = 0;
21
22 virtual const SkMatrix44& transform() const = 0;
23 virtual void setTransform(const SkMatrix44&) = 0;
24
25 virtual double scrollLeft() const = 0;
26 virtual void setScrollLeft(double) = 0;
27
28 virtual double scrollTop() const = 0;
29 virtual void setScrollTop(double) = 0;
30 };
31
32 } // namespace blink
33
34 #endif // WebCompositorMutableState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698