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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.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/CompositorMutableStateProvider.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
index 7cd920bf8191bfd3b9ca8bc96251de4e3d039ac9..225af89ee409db6e41e235a7c786b474c0a7507a 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
@@ -5,13 +5,10 @@
#ifndef CompositorMutableStateProvider_h
#define CompositorMutableStateProvider_h
-#include "platform/PlatformExport.h"
#include <cstdint>
#include <memory>
-
-namespace cc {
-class LayerTreeImpl;
-} // namespace cc
+#include "platform/PlatformExport.h"
+#include "platform/graphics/CompositorMutableProperties.h"
namespace blink {
@@ -22,14 +19,14 @@ struct CompositorMutations;
// around per-element bits of this state.
class PLATFORM_EXPORT CompositorMutableStateProvider {
public:
- CompositorMutableStateProvider(cc::LayerTreeImpl*, CompositorMutations*);
+ CompositorMutableStateProvider(ProxyCompositorMutablePropertiesMap*,
+ CompositorMutations*);
~CompositorMutableStateProvider();
- std::unique_ptr<CompositorMutableState> GetMutableStateFor(
- uint64_t element_id);
+ std::unique_ptr<CompositorMutableState> GetMutableStateFor(uint64_t proxy_id);
private:
- cc::LayerTreeImpl* tree_;
+ ProxyCompositorMutablePropertiesMap* input_properties_;
CompositorMutations* mutations_;
};

Powered by Google App Engine
This is Rietveld 408576698