Chromium Code Reviews| 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..552c886468b4c16146c77962efa6a06032d6a235 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.h |
| @@ -0,0 +1,48 @@ |
| +// 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" |
| + |
| +#include <cstdint> |
|
jbroman
2016/01/18 19:07:22
this #include has no apparent uses in this header
Ian Vollick
2016/01/18 21:25:04
Removed.
|
| + |
| +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 |