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 |