OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/resources/memory_history.h" | 5 #include "cc/resources/memory_history.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
| 10 |
9 namespace cc { | 11 namespace cc { |
10 | 12 |
11 // static | 13 // static |
12 scoped_ptr<MemoryHistory> MemoryHistory::Create() { | 14 std::unique_ptr<MemoryHistory> MemoryHistory::Create() { |
13 return make_scoped_ptr(new MemoryHistory()); | 15 return base::WrapUnique(new MemoryHistory()); |
14 } | 16 } |
15 | 17 |
16 MemoryHistory::MemoryHistory() {} | 18 MemoryHistory::MemoryHistory() {} |
17 | 19 |
18 void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) { | 20 void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) { |
19 ring_buffer_.SaveToBuffer(entry); | 21 ring_buffer_.SaveToBuffer(entry); |
20 } | 22 } |
21 | 23 |
22 } // namespace cc | 24 } // namespace cc |
OLD | NEW |