Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: cc/resources/memory_history.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/memory_history.h ('k') | cc/resources/one_copy_tile_task_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/memory_history.cc
diff --git a/cc/resources/memory_history.cc b/cc/resources/memory_history.cc
deleted file mode 100644
index 4dc49c881a693ea1f6ea54166f2884034bedfa8d..0000000000000000000000000000000000000000
--- a/cc/resources/memory_history.cc
+++ /dev/null
@@ -1,39 +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/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);
-}
-
-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->total_bytes_used;
-
- if (bytes_total < *min)
- *min = bytes_total;
- if (bytes_total > *max)
- *max = bytes_total;
- }
-
- if (*min > *max)
- *min = *max;
-}
-
-} // namespace cc
« no previous file with comments | « cc/resources/memory_history.h ('k') | cc/resources/one_copy_tile_task_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698