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

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

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/ProxiedPropertyCounts.h
diff --git a/third_party/WebKit/Source/core/dom/ProxiedPropertyCounts.h b/third_party/WebKit/Source/core/dom/ProxiedPropertyCounts.h
new file mode 100644
index 0000000000000000000000000000000000000000..76dbf9d64cb858f060f15821fc9f8c398f3ae783
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/ProxiedPropertyCounts.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 ProxiedPropertyCounts_h
+#define ProxiedPropertyCounts_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 ProxiedPropertyCounts final : public NoBaseWillBeGarbageCollectedFinalized<ProxiedPropertyCounts> {
esprehn 2015/12/02 03:28:49 CompositorProxiedProperties or PropertySet since t
Ian Vollick 2015/12/03 17:54:43 I went with CompositorProxiedPropertySet. wdyt?
+ WTF_MAKE_NONCOPYABLE(ProxiedPropertyCounts);
+ USING_FAST_MALLOC_WILL_BE_REMOVED(ProxiedPropertyCounts);
+public:
+ static PassOwnPtrWillBeRawPtr<ProxiedPropertyCounts> create();
+ virtual ~ProxiedPropertyCounts();
+
+ DEFINE_INLINE_TRACE() { }
+
+ bool empty() const;
esprehn 2015/12/02 03:28:49 isEmpty()
Ian Vollick 2015/12/03 17:54:43 Done.
+ void increment(uint32_t mutableProperties);
+ void decrement(uint32_t mutableProperties);
+ uint32_t proxiedProperties() const;
+
+private:
+ ProxiedPropertyCounts();
+
+ unsigned short m_counts[kNumWebCompositorMutableProperties];
+};
+
+} // namespace blink
+
+#endif // ProxiedPropertyCounts_h

Powered by Google App Engine
This is Rietveld 408576698