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

Unified Diff: third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.h

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase error. Created 5 years 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/core/dom/CompositorProxiedPropertySet.h
diff --git a/third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.h b/third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.h
new file mode 100644
index 0000000000000000000000000000000000000000..13d089ab3337946c9d727e4b06d8f50e150afe41
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.h
@@ -0,0 +1,36 @@
+// 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 CompositorProxiedPropertySet_h
+#define CompositorProxiedPropertySet_h
+
+#include "platform/heap/Handle.h"
+#include "public/platform/WebCompositorMutableProperties.h"
+
+namespace blink {
+
+// Keeps track of the number of proxies bound to each property.
+class CompositorProxiedPropertySet final : public NoBaseWillBeGarbageCollectedFinalized<CompositorProxiedPropertySet> {
+ WTF_MAKE_NONCOPYABLE(CompositorProxiedPropertySet);
+ USING_FAST_MALLOC_WILL_BE_REMOVED(CompositorProxiedPropertySet);
+public:
+ static PassOwnPtrWillBeRawPtr<CompositorProxiedPropertySet> create();
+ virtual ~CompositorProxiedPropertySet();
+
+ DEFINE_INLINE_TRACE() { }
+
+ bool isEmpty() const;
+ void increment(uint32_t mutableProperties);
+ void decrement(uint32_t mutableProperties);
+ uint32_t proxiedProperties() const;
+
+private:
+ CompositorProxiedPropertySet();
+
+ unsigned short m_counts[kNumWebCompositorMutableProperties];
+};
+
+} // namespace blink
+
+#endif // CompositorProxiedPropertySet_h

Powered by Google App Engine
This is Rietveld 408576698