diff options
| author | 2015-06-04 21:54:07 +0000 | |
|---|---|---|
| committer | 2015-06-04 21:54:18 +0000 | |
| commit | dde606df7f20f5d14b9d1440f1bd80e8d0d3969c (patch) | |
| tree | d81058d98e19512ad1969c361b41920a14115294 /libs/hwui/FrameInfoVisualizer.h | |
| parent | 3a4656e8874a7bfa11ff8c68dfca87b7f399ff36 (diff) | |
| parent | 41300274cf8efde2ca95d3c767b214d1edb97f8d (diff) | |
Merge "Iterate step of launch & iterate" into mnc-dev
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; |