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

Side by Side Diff: third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
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/PtrUtil.h" 7 #include "wtf/PassOwnPtr.h"
8 #include <memory>
9 8
10 namespace blink { 9 namespace blink {
11 10
12 std::unique_ptr<CompositorProxiedPropertySet> CompositorProxiedPropertySet::crea te() 11 PassOwnPtr<CompositorProxiedPropertySet> CompositorProxiedPropertySet::create()
13 { 12 {
14 return wrapUnique(new CompositorProxiedPropertySet); 13 return adoptPtr(new CompositorProxiedPropertySet);
15 } 14 }
16 15
17 CompositorProxiedPropertySet::CompositorProxiedPropertySet() 16 CompositorProxiedPropertySet::CompositorProxiedPropertySet()
18 { 17 {
19 memset(m_counts, 0, sizeof(m_counts)); 18 memset(m_counts, 0, sizeof(m_counts));
20 } 19 }
21 20
22 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} 21 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {}
23 22
24 bool CompositorProxiedPropertySet::isEmpty() const 23 bool CompositorProxiedPropertySet::isEmpty() const
(...skipping 23 matching lines...) Expand all
48 { 47 {
49 uint32_t properties = CompositorMutableProperty::kNone; 48 uint32_t properties = CompositorMutableProperty::kNone;
50 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { 49 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) {
51 if (m_counts[i]) 50 if (m_counts[i])
52 properties |= 1 << i; 51 properties |= 1 << i;
53 } 52 }
54 return properties; 53 return properties;
55 } 54 }
56 55
57 } // namespace blink 56 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.h ('k') | third_party/WebKit/Source/core/dom/ContainerNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698