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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h

Issue 2765053002: Avoid exposing cc::Layer tree to CompositorProxy (Closed)
Patch Set: Rebase onto blink reformat Created 3 years, 8 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
Index: third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h b/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
index 8aecbfff4cd2e741e0bb36f53513ce457ca64aa6..3c4db3f3f3b132c7d20fc3d95ac64d14d7883ca6 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
@@ -5,12 +5,31 @@
#ifndef CompositorMutableProperties_h
#define CompositorMutableProperties_h
+#include <unordered_map>
#include "cc/trees/mutable_properties.h"
+#include "third_party/skia/include/core/SkMatrix44.h"
namespace blink {
using CompositorMutableProperty = cc::MutableProperty;
+// Holds the values of the available mutable properties for a |CompositorProxy|.
+// Provided to a proxy at the start of a mutate call with the current input
+// values taken from the layer tree.
+//
+// This data structure is not responsible for tracking property mutations; for
+// that see |CompositorMutation|.
+class CompositorMutableProperties {
+ public:
+ uint64_t element_id;
+ double opacity;
+ float scroll_left;
+ float scroll_top;
+ SkMatrix44 transform;
+};
+typedef std::unordered_map<uint64_t, CompositorMutableProperties>
+ ProxyCompositorMutablePropertiesMap;
+
} // namespace blink
#endif // CompositorMutableProperties_h

Powered by Google App Engine
This is Rietveld 408576698