blob: 019465d7d35920a4d6960d4169d3c8f08a4670e5 [file] [log] [blame]
// 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>
#include "base/memory/ptr_util.h"
namespace cc {
// static
std::unique_ptr<MemoryHistory> MemoryHistory::Create() {
return base::WrapUnique(new MemoryHistory());
}
MemoryHistory::MemoryHistory() = default;
void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) {
ring_buffer_.SaveToBuffer(entry);
}
} // namespace cc