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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ProxiedPropertyCounts_h
6 #define ProxiedPropertyCounts_h
7
8 #include "platform/heap/Handle.h"
9 #include "public/platform/WebCompositorMutableProperties.h"
10
11 namespace blink {
12
13 // Keeps track of the number of proxies bound to each property.
14 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?
15 WTF_MAKE_NONCOPYABLE(ProxiedPropertyCounts);
16 USING_FAST_MALLOC_WILL_BE_REMOVED(ProxiedPropertyCounts);
17 public:
18 static PassOwnPtrWillBeRawPtr<ProxiedPropertyCounts> create();
19 virtual ~ProxiedPropertyCounts();
20
21 DEFINE_INLINE_TRACE() { }
22
23 bool empty() const;
esprehn 2015/12/02 03:28:49 isEmpty()
Ian Vollick 2015/12/03 17:54:43 Done.
24 void increment(uint32_t mutableProperties);
25 void decrement(uint32_t mutableProperties);
26 uint32_t proxiedProperties() const;
27
28 private:
29 ProxiedPropertyCounts();
30
31 unsigned short m_counts[kNumWebCompositorMutableProperties];
32 };
33
34 } // namespace blink
35
36 #endif // ProxiedPropertyCounts_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698