summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2016-03-04 15:59:24 -0800
committerChris Craik <ccraik@google.com>2016-03-04 16:18:26 -0800
commit1dfa0704964c17e45775b9e01f1fa0b1a10774f7 (patch)
tree45cbf88a4792def75988c4ae1a7dca8d8ffda3e9 /libs/hwui/FrameInfoVisualizer.h
parent8316fac9c0772b1908d45b2286298b5b791d3ca7 (diff)
Support GPU profiling vis in new pipeline
bug:27353099 Change-Id: I905c1a998d9a9e2097c047dab9de87a70d7a370e
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.h')
-rw-r--r--libs/hwui/FrameInfoVisualizer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/hwui/FrameInfoVisualizer.h b/libs/hwui/FrameInfoVisualizer.h
index cf877c4d8827..83adf1985c72 100644
--- a/libs/hwui/FrameInfoVisualizer.h
+++ b/libs/hwui/FrameInfoVisualizer.h
@@ -28,7 +28,13 @@
namespace android {
namespace uirenderer {
+#if HWUI_NEW_OPS
+class BakedOpRenderer;
+typedef BakedOpRenderer ContentRenderer;
+#else
class OpenGLRenderer;
+typedef OpenGLRenderer ContentRenderer;
+#endif
// 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
@@ -46,7 +52,7 @@ public:
void setDensity(float density);
void unionDirty(SkRect* dirty);
- void draw(OpenGLRenderer* canvas);
+ void draw(ContentRenderer* renderer);
void dumpData(int fd);
@@ -56,8 +62,8 @@ private:
void initializeRects(const int baseline, const int width);
void nextBarSegment(FrameInfoIndex start, FrameInfoIndex end);
- void drawGraph(OpenGLRenderer* canvas);
- void drawThreshold(OpenGLRenderer* canvas);
+ void drawGraph(ContentRenderer* renderer);
+ void drawThreshold(ContentRenderer* renderer);
inline float durationMS(size_t index, FrameInfoIndex start, FrameInfoIndex end) {
float duration = mFrameSource[index].duration(start, end) * 0.000001f;