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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/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
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
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