blob: 29bad2a30b32946656aad5e86b971074525fee76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/resources/memory_history.h"
#include <limits>
namespace cc {
// static
scoped_ptr<MemoryHistory> MemoryHistory::Create() {
return make_scoped_ptr(new MemoryHistory());
}
MemoryHistory::MemoryHistory() {}
void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) {
ring_buffer_.SaveToBuffer(entry);
}
} // namespace cc
|