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

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

Issue 2765053002: Avoid exposing cc::Layer tree to CompositorProxy (Closed)
Patch Set: Minor changes Created 3 years, 9 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..42782463530930ac7d24d5993d8a87e0b6d54308 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h
@@ -5,12 +5,25 @@
#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;
+class CompositorMutableProperties {
flackr 2017/04/03 17:09:19 Can you add a comment what this is used for?
smcgruer 2017/04/03 19:37:11 Done, although I don't love my own explanation...
+ public:
+ uint64_t elementId;
+ double opacity;
+ float scrollLeft;
+ float scrollTop;
+ SkMatrix44 transform;
+};
+typedef std::unordered_map<uint64_t, CompositorMutableProperties>
+ ProxyCompositorMutablePropertiesMap;
+
} // namespace blink
#endif // CompositorMutableProperties_h

Powered by Google App Engine
This is Rietveld 408576698