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

Unified Diff: third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h

Issue 1447893002: compositor-worker: Introduce WebCompositorMutableState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback. 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/public/platform/WebCompositorMutableStateProvider.h
diff --git a/third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h b/third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2dca7c187af82d46bbb8269e9b4f4838be3fb7b
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebCompositorMutableStateProvider.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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 WebCompositorMutableStateProvider_h
+#define WebCompositorMutableStateProvider_h
+
+#include "public/platform/WebPassOwnPtr.h"
+
+#include <cstdint>
+
+namespace blink {
+
+class WebCompositorMutableState;
+
+// This class is a window onto compositor-owned state. It vends out wrappers
+// around per-element bits of this state.
+class WebCompositorMutableStateProvider {
+public:
+ virtual ~WebCompositorMutableStateProvider() { }
+
+ // The caller is expected to take ownership.
+ virtual WebPassOwnPtr<WebCompositorMutableState> getMutableStateFor(uint64_t elementId) = 0;
+};
+
+} // namespace blink
+
+#endif // WebCompositorMutableStateProvider_h
« no previous file with comments | « third_party/WebKit/public/platform/WebCompositorMutableState.h ('k') | third_party/WebKit/public/platform/WebPassOwnPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698