summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread/CanvasContext.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-12 07:17:50 -0700
committerJohn Reck <jreck@google.com>2015-05-12 11:02:07 -0700
commit4c9e59d03c2bca38001225b79d01740b8999adfb (patch)
tree140ff328b9966bdd974a7868c631eebdc1fea76f /libs/hwui/renderthread/CanvasContext.h
parent4bd4121d584e16c700ba08828c675b7f906ff331 (diff)
downloadframeworks_base-4c9e59d03c2bca38001225b79d01740b8999adfb.zip
frameworks_base-4c9e59d03c2bca38001225b79d01740b8999adfb.tar.gz
frameworks_base-4c9e59d03c2bca38001225b79d01740b8999adfb.tar.bz2
Unify DrawProfiler/JankStats
Bug: 20822400 Change-Id: I24345c3120440bfce14e8cbe7e880b39f10b744a
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.h')
-rw-r--r--libs/hwui/renderthread/CanvasContext.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index 8163b0f..8d54304 100644
--- a/libs/hwui/renderthread/CanvasContext.h
+++ b/libs/hwui/renderthread/CanvasContext.h
@@ -18,9 +18,9 @@
#define CANVASCONTEXT_H_
#include "DamageAccumulator.h"
-#include "DrawProfiler.h"
#include "IContextFactory.h"
#include "FrameInfo.h"
+#include "FrameInfoVisualizer.h"
#include "RenderNode.h"
#include "utils/RingBuffer.h"
#include "renderthread/RenderTask.h"
@@ -103,7 +103,7 @@ public:
void stopDrawing();
void notifyFramePending();
- DrawProfiler& profiler() { return mProfiler; }
+ FrameInfoVisualizer& profiler() { return mProfiler; }
void dumpFrames(int fd);
void resetFrameStats();
@@ -140,12 +140,12 @@ private:
const sp<RenderNode> mRootRenderNode;
- DrawProfiler mProfiler;
FrameInfo* mCurrentFrameInfo = nullptr;
- // Ring buffer large enough for 1 second worth of frames
- RingBuffer<FrameInfo, 60> mFrames;
+ // Ring buffer large enough for 2 seconds worth of frames
+ RingBuffer<FrameInfo, 120> mFrames;
std::string mName;
JankTracker mJankTracker;
+ FrameInfoVisualizer mProfiler;
std::set<RenderNode*> mPrefetechedLayers;
};