blob: caf849807e9021428d4f8da9bc4e7a998366a41a [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() {}
void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) {
ring_buffer_.SaveToBuffer(entry);
}
} // namespace cc