summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.h
diff options
context:
space:
mode:
author Matt Sarett <msarett@google.com> 2016-10-25 11:07:40 -0400
committer Matt Sarett <msarett@google.com> 2016-10-25 17:44:55 -0400
commitde97307362c26b64e2376b21ccde8414088cdc8b (patch)
treede9191b92f6d2a003486ad265dc1c8c1420db315 /libs/hwui/FrameInfoVisualizer.h
parentd80812b8823ee62932d5da24417112c471468b8c (diff)
Make FrameInfoVisualizer use an IRenderPipeline to draw
Removing the direct uses of the BakedOpRenderer should make it easier for the SkiaGL pipeline to take advantage of these debugging features. Test: Verified that debug.hwui.show_dirty_regions and debug.hwui.profile still behave as expected. BUG:32370375 Change-Id: I2818bda4a18ec183c9c39ca080ad34a4dc89b5cd
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.h')
-rw-r--r--libs/hwui/FrameInfoVisualizer.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/hwui/FrameInfoVisualizer.h b/libs/hwui/FrameInfoVisualizer.h
index d60c002ed5f4..b98f50101483 100644
--- a/libs/hwui/FrameInfoVisualizer.h
+++ b/libs/hwui/FrameInfoVisualizer.h
@@ -28,8 +28,7 @@
namespace android {
namespace uirenderer {
-class BakedOpRenderer;
-typedef BakedOpRenderer ContentRenderer;
+class IProfileRenderer;
// TODO: This is a bit awkward as it needs to match the thing in CanvasContext
// A better abstraction here would be nice but iterators are painful
@@ -47,7 +46,7 @@ public:
void setDensity(float density);
void unionDirty(SkRect* dirty);
- void draw(ContentRenderer* renderer);
+ void draw(IProfileRenderer& renderer);
void dumpData(int fd);
@@ -57,8 +56,8 @@ private:
void initializeRects(const int baseline, const int width);
void nextBarSegment(FrameInfoIndex start, FrameInfoIndex end);
- void drawGraph(ContentRenderer* renderer);
- void drawThreshold(ContentRenderer* renderer);
+ void drawGraph(IProfileRenderer& renderer);
+ void drawThreshold(IProfileRenderer& renderer);
inline float durationMS(size_t index, FrameInfoIndex start, FrameInfoIndex end) {
float duration = mFrameSource[index].duration(start, end) * 0.000001f;