summaryrefslogtreecommitdiff
path: root/libs/hwui/JankTracker.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-03-11 08:50:53 -0700
committerJohn Reck <jreck@google.com>2015-03-11 11:29:13 -0700
commitb36016c65f1d1b5846dba0349aab491dbd3a746a (patch)
tree6ce0e78368d6797988cc9b9745b20de5919bb19f /libs/hwui/JankTracker.h
parent4771577a342214ef4f7373a8d37d015749b00347 (diff)
Cleanups & simplifications
Change-Id: I5ad5e3b8fe55b1528f2e20c63e5abe51d9e40ff1
Diffstat (limited to 'libs/hwui/JankTracker.h')
-rw-r--r--libs/hwui/JankTracker.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/JankTracker.h b/libs/hwui/JankTracker.h
index 3d4929b215c6..ae339ecf746c 100644
--- a/libs/hwui/JankTracker.h
+++ b/libs/hwui/JankTracker.h
@@ -20,6 +20,7 @@
#include "renderthread/TimeLord.h"
#include "utils/RingBuffer.h"
+#include <array>
#include <memory>
namespace android {
@@ -56,9 +57,9 @@ public:
private:
uint32_t findPercentile(int p);
- JankBucket mBuckets[NUM_BUCKETS];
- int64_t mThresholds[NUM_BUCKETS];
- uint32_t mFrameCounts[128];
+ std::array<JankBucket, NUM_BUCKETS> mBuckets;
+ std::array<int64_t, NUM_BUCKETS> mThresholds;
+ std::array<uint32_t, 128> mFrameCounts;
int64_t mFrameInterval;
uint32_t mTotalFrameCount;