| 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> {
|
| + WTF_MAKE_NONCOPYABLE(ProxiedPropertyCounts);
|
| + USING_FAST_MALLOC_WILL_BE_REMOVED(ProxiedPropertyCounts);
|
| +public:
|
| + static PassOwnPtrWillBeRawPtr<ProxiedPropertyCounts> create();
|
| + virtual ~ProxiedPropertyCounts();
|
| +
|
| + DEFINE_INLINE_TRACE() { }
|
| +
|
| + bool empty() const;
|
| + 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
|
|
|