| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/CompositorProxiedPropertySet.h" | 5 #include "core/dom/CompositorProxiedPropertySet.h" |
| 6 | 6 |
| 7 #include "wtf/PassOwnPtr.h" | 7 #include "wtf/PtrUtil.h" |
| 8 #include <memory> |
| 8 | 9 |
| 9 namespace blink { | 10 namespace blink { |
| 10 | 11 |
| 11 PassOwnPtr<CompositorProxiedPropertySet> CompositorProxiedPropertySet::create() | 12 std::unique_ptr<CompositorProxiedPropertySet> CompositorProxiedPropertySet::crea
te() |
| 12 { | 13 { |
| 13 return adoptPtr(new CompositorProxiedPropertySet); | 14 return wrapUnique(new CompositorProxiedPropertySet); |
| 14 } | 15 } |
| 15 | 16 |
| 16 CompositorProxiedPropertySet::CompositorProxiedPropertySet() | 17 CompositorProxiedPropertySet::CompositorProxiedPropertySet() |
| 17 { | 18 { |
| 18 memset(m_counts, 0, sizeof(m_counts)); | 19 memset(m_counts, 0, sizeof(m_counts)); |
| 19 } | 20 } |
| 20 | 21 |
| 21 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} | 22 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} |
| 22 | 23 |
| 23 bool CompositorProxiedPropertySet::isEmpty() const | 24 bool CompositorProxiedPropertySet::isEmpty() const |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 { | 48 { |
| 48 uint32_t properties = CompositorMutableProperty::kNone; | 49 uint32_t properties = CompositorMutableProperty::kNone; |
| 49 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { | 50 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { |
| 50 if (m_counts[i]) | 51 if (m_counts[i]) |
| 51 properties |= 1 << i; | 52 properties |= 1 << i; |
| 52 } | 53 } |
| 53 return properties; | 54 return properties; |
| 54 } | 55 } |
| 55 | 56 |
| 56 } // namespace blink | 57 } // namespace blink |
| OLD | NEW |