| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/dom/CompositorProxiedPropertySet.h" | 6 #include "core/dom/CompositorProxiedPropertySet.h" |
| 7 #include "wtf/PassOwnPtr.h" |
| 7 | 8 |
| 8 namespace blink { | 9 namespace blink { |
| 9 | 10 |
| 10 PassOwnPtrWillBeRawPtr<CompositorProxiedPropertySet> CompositorProxiedPropertySe
t::create() | 11 PassOwnPtr<CompositorProxiedPropertySet> CompositorProxiedPropertySet::create() |
| 11 { | 12 { |
| 12 return adoptPtrWillBeNoop(new CompositorProxiedPropertySet); | 13 return adoptPtr(new CompositorProxiedPropertySet); |
| 13 } | 14 } |
| 14 | 15 |
| 15 CompositorProxiedPropertySet::CompositorProxiedPropertySet() | 16 CompositorProxiedPropertySet::CompositorProxiedPropertySet() |
| 16 { | 17 { |
| 17 memset(m_counts, 0, sizeof(m_counts)); | 18 memset(m_counts, 0, sizeof(m_counts)); |
| 18 } | 19 } |
| 19 | 20 |
| 20 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} | 21 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} |
| 21 | 22 |
| 22 bool CompositorProxiedPropertySet::isEmpty() const | 23 bool CompositorProxiedPropertySet::isEmpty() const |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 { | 47 { |
| 47 uint32_t properties = WebCompositorMutablePropertyNone; | 48 uint32_t properties = WebCompositorMutablePropertyNone; |
| 48 for (int i = 0; i < kNumWebCompositorMutableProperties; ++i) { | 49 for (int i = 0; i < kNumWebCompositorMutableProperties; ++i) { |
| 49 if (m_counts[i]) | 50 if (m_counts[i]) |
| 50 properties |= 1 << i; | 51 properties |= 1 << i; |
| 51 } | 52 } |
| 52 return properties; | 53 return properties; |
| 53 } | 54 } |
| 54 | 55 |
| 55 } // namespace blink | 56 } // namespace blink |
| OLD | NEW |