diff options
author | 2015-06-03 14:42:34 -0700 | |
---|---|---|
committer | 2015-06-04 10:49:08 -0700 | |
commit | 41300274cf8efde2ca95d3c767b214d1edb97f8d (patch) | |
tree | 8050e8f5aa281cb3ed3c8f5c325f5b994922f95c /libs/hwui/FrameInfoVisualizer.h | |
parent | e50b091df9586c5c41d219ffb0c41fa3f893c329 (diff) |
Iterate step of launch & iterate
Bug: 18052916
Tweaked colors, merged some categories
Reduced significance of fast frames
Increased visual weight of janky frames
Change-Id: I5b4e86164c4d51debad7de0e0f8715dda34c7a60
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.h')
-rw-r--r-- | libs/hwui/FrameInfoVisualizer.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/libs/hwui/FrameInfoVisualizer.h b/libs/hwui/FrameInfoVisualizer.h index 3fa458659124..f1dc95419868 100644 --- a/libs/hwui/FrameInfoVisualizer.h +++ b/libs/hwui/FrameInfoVisualizer.h @@ -54,10 +54,9 @@ private: void createData(); void destroyData(); - void initializeRects(const int baseline); + void initializeRects(const int baseline, const int width); void nextBarSegment(FrameInfoIndex start, FrameInfoIndex end); void drawGraph(OpenGLRenderer* canvas); - void drawCurrentFrame(const int baseline, OpenGLRenderer* canvas); void drawThreshold(OpenGLRenderer* canvas); inline float duration(size_t index, FrameInfoIndex start, FrameInfoIndex end) { @@ -75,17 +74,12 @@ private: FrameInfoSource& mFrameSource; int mVerticalUnit = 0; - int mHorizontalUnit = 0; int mThresholdStroke = 0; - /* - * mRects represents an array of rect shapes, divided into NUM_ELEMENTS - * groups such that each group is drawn with the same paint. - * For example mRects[0] is the array of rect floats suitable for - * OpenGLRenderer:drawRects() that makes up all the FrameTimingData:record - * information. - */ - std::unique_ptr<float[]> mRects; + int mNumFastRects; + std::unique_ptr<float[]> mFastRects; + int mNumJankyRects; + std::unique_ptr<float[]> mJankyRects; bool mShowDirtyRegions = false; SkRect mDirtyRegion; |