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

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

Issue 1599673002: compositor-worker: Remove code from cc_blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix blink_platform_unittests Created 4 years, 11 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
new file mode 100644
index 0000000000000000000000000000000000000000..3f1b8fce503c79944579e0fb93137155ae976462
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
@@ -0,0 +1,37 @@
+// 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 CompositorMutableStateProvider_h
+#define CompositorMutableStateProvider_h
+
+#include "platform/PlatformExport.h"
+#include "wtf/PassOwnPtr.h"
+
+#include <cstdint>
+
+namespace cc {
+class LayerTreeImpl;
+} // namespace cc
+
+namespace blink {
+
+class CompositorMutableState;
+struct CompositorMutations;
+
+// This class is a window onto compositor-owned state. It vends out wrappers
+// around per-element bits of this state.
+class PLATFORM_EXPORT CompositorMutableStateProvider {
+public:
+ CompositorMutableStateProvider(cc::LayerTreeImpl*, CompositorMutations*);
+ ~CompositorMutableStateProvider();
+
+ PassOwnPtr<CompositorMutableState> getMutableStateFor(uint64_t elementId);
+private:
+ cc::LayerTreeImpl* m_state;
+ CompositorMutations* m_mutations;
+};
+
+} // namespace blink
+
+#endif // CompositorMutableStateProvider_h

Powered by Google App Engine
This is Rietveld 408576698