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

Unified Diff: experimental/flocking_geese/nacl_app/frame_counter.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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
Index: experimental/flocking_geese/nacl_app/frame_counter.h
diff --git a/experimental/flocking_geese/nacl_app/frame_counter.h b/experimental/flocking_geese/nacl_app/frame_counter.h
deleted file mode 100644
index ff3f0bbde4199b003e659604de353c838ad37ab1..0000000000000000000000000000000000000000
--- a/experimental/flocking_geese/nacl_app/frame_counter.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Native Client 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 FRAME_COUNTER_H_
-#define FRAME_COUNTER_H_
-
-class FrameCounter {
- public:
- FrameCounter()
- : frame_duration_accumulator_(0),
- frame_count_(0),
- frames_per_second_(0) {}
- ~FrameCounter() {}
-
- // Record the current time, which is used to compute the frame duration
- // when EndFrame() is called.
- void BeginFrame();
-
- // Compute the delta since the last call to BeginFrame() and increment the
- // frame count. Update the frame rate whenever the prescribed number of
- // frames have been counted, or at least one second of simulator time has
- // passed, whichever is less.
- void EndFrame();
-
- // Reset the frame counters back to 0.
- void Reset();
-
- // The current frame rate. Note that this is 0 for the first second in
- // the accumulator, and is updated every 100 frames (and at least once
- // every second of simulation time or so).
- double frames_per_second() const {
- return frames_per_second_;
- }
-
- private:
- static const double kMicroSecondsPerSecond = 1000000.0;
- static const int32_t kFrameRateRefreshCount = 100;
-
- double frame_duration_accumulator_; // Measured in microseconds.
- int32_t frame_count_;
- double frame_start_;
- double frames_per_second_;
-};
-
-#endif // FRAME_COUNTER_H_
« no previous file with comments | « experimental/flocking_geese/nacl_app/flocking_geese_module.cc ('k') | experimental/flocking_geese/nacl_app/frame_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698