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

Unified Diff: cc/resources/memory_history.h

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/layer_updater.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/memory_history.h
diff --git a/cc/resources/memory_history.h b/cc/resources/memory_history.h
deleted file mode 100644
index 570a3d0ca4321f8ec13f2fe27d8ea063b153806f..0000000000000000000000000000000000000000
--- a/cc/resources/memory_history.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef CC_RESOURCES_MEMORY_HISTORY_H_
-#define CC_RESOURCES_MEMORY_HISTORY_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
-#include "cc/debug/ring_buffer.h"
-
-namespace cc {
-
-// Maintains a history of memory for each frame.
-class MemoryHistory {
- public:
- static scoped_ptr<MemoryHistory> Create();
-
- size_t HistorySize() const { return ring_buffer_.BufferSize(); }
-
- struct Entry {
- Entry()
- : total_budget_in_bytes(0),
- total_bytes_used(0),
- had_enough_memory(false) {}
-
- size_t total_budget_in_bytes;
- size_t total_bytes_used;
- bool had_enough_memory;
- };
-
- void SaveEntry(const Entry& entry);
- void GetMinAndMax(size_t* min, size_t* max) const;
-
- typedef RingBuffer<Entry, 80> RingBufferType;
- RingBufferType::Iterator Begin() const { return ring_buffer_.Begin(); }
- RingBufferType::Iterator End() const { return ring_buffer_.End(); }
-
- private:
- MemoryHistory();
-
- RingBufferType ring_buffer_;
-
- DISALLOW_COPY_AND_ASSIGN(MemoryHistory);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_MEMORY_HISTORY_H_
« no previous file with comments | « cc/resources/layer_updater.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698