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

Unified Diff: cc/debug/paint_time_counter.h

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 years 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/debug/lap_timer.cc ('k') | cc/debug/paint_time_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/paint_time_counter.h
diff --git a/cc/debug/paint_time_counter.h b/cc/debug/paint_time_counter.h
deleted file mode 100644
index c93980bc8361829cdd447766f44210c5ee563b90..0000000000000000000000000000000000000000
--- a/cc/debug/paint_time_counter.h
+++ /dev/null
@@ -1,45 +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_DEBUG_PAINT_TIME_COUNTER_H_
-#define CC_DEBUG_PAINT_TIME_COUNTER_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 paint times for each frame
-class PaintTimeCounter {
- public:
- static scoped_ptr<PaintTimeCounter> Create();
-
- size_t HistorySize() const { return ring_buffer_.BufferSize(); }
-
- // n = 0 returns the oldest and
- // n = PaintTimeHistorySize() - 1 the most recent paint time.
- base::TimeDelta GetPaintTimeOfRecentFrame(const size_t& n) const;
-
- void SavePaintTime(const base::TimeDelta& total_paint_time);
- void GetMinAndMaxPaintTime(base::TimeDelta* min, base::TimeDelta* max) const;
-
- void ClearHistory();
-
- typedef RingBuffer<base::TimeDelta, 200> RingBufferType;
- RingBufferType::Iterator Begin() const { return ring_buffer_.Begin(); }
- RingBufferType::Iterator End() const { return ring_buffer_.End(); }
-
- private:
- PaintTimeCounter();
-
- RingBufferType ring_buffer_;
-
- DISALLOW_COPY_AND_ASSIGN(PaintTimeCounter);
-};
-
-} // namespace cc
-
-#endif // CC_DEBUG_PAINT_TIME_COUNTER_H_
« no previous file with comments | « cc/debug/lap_timer.cc ('k') | cc/debug/paint_time_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698