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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CompositorMutableProperties_h 5 #ifndef CompositorMutableProperties_h
6 #define CompositorMutableProperties_h 6 #define CompositorMutableProperties_h
7 7
8 #include <unordered_map>
8 #include "cc/trees/mutable_properties.h" 9 #include "cc/trees/mutable_properties.h"
10 #include "third_party/skia/include/core/SkMatrix44.h"
9 11
10 namespace blink { 12 namespace blink {
11 13
12 using CompositorMutableProperty = cc::MutableProperty; 14 using CompositorMutableProperty = cc::MutableProperty;
13 15
16 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...
17 public:
18 uint64_t elementId;
19 double opacity;
20 float scrollLeft;
21 float scrollTop;
22 SkMatrix44 transform;
23 };
24 typedef std::unordered_map<uint64_t, CompositorMutableProperties>
25 ProxyCompositorMutablePropertiesMap;
26
14 } // namespace blink 27 } // namespace blink
15 28
16 #endif // CompositorMutableProperties_h 29 #endif // CompositorMutableProperties_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698