| Index: cc/memory_history.cc
|
| diff --git a/cc/memory_history.cc b/cc/memory_history.cc
|
| deleted file mode 100644
|
| index b441938d92fb031c49950ad05cd9fe4465d985c4..0000000000000000000000000000000000000000
|
| --- a/cc/memory_history.cc
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// 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/memory_history.h"
|
| -
|
| -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);
|
| -}
|
| -
|
| -void MemoryHistory::GetMinAndMax(size_t* min, size_t* max) const {
|
| - *min = std::numeric_limits<size_t>::max();
|
| - *max = 0;
|
| -
|
| - for (RingBufferType::Iterator it = ring_buffer_.Begin(); it; ++it) {
|
| - size_t bytes_total = it->bytes_total();
|
| -
|
| - if (bytes_total < *min)
|
| - *min = bytes_total;
|
| - if (bytes_total > *max)
|
| - *max = bytes_total;
|
| - }
|
| -
|
| - if (*min > *max)
|
| - *min = *max;
|
| -}
|
| -
|
| -} // namespace cc
|
|
|