diff options
author | Stan Iliev <stani@google.com> | 2017-02-09 16:59:27 -0500 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-02-09 17:09:03 -0500 |
commit | d21723704571dba7e69947d92856f22989d53dbf (patch) | |
tree | ca2992919e43c91960380e61ef5d96dff7b83070 /libs/hwui/pipeline/skia/SkiaDisplayList.cpp | |
parent | 570661486882ab2690b62176e83c23a4b2d6a796 (diff) |
Implement "dump displaylist" button for skia pipelines
Implement "dump displaylist" button in hierarchyviewer for skia
pipelines.
Test: ran hierarchyviewer for all pipelines.
bug: 34819877
Change-Id: Ifeb578260f636cb67268f9f9259e7318bf7de453
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaDisplayList.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaDisplayList.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp index 36d02ecbc8bb..b4babcb9564e 100644 --- a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp +++ b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp @@ -18,6 +18,7 @@ #include "renderthread/CanvasContext.h" #include "VectorDrawable.h" +#include "DumpOpsCanvas.h" #include <SkImagePriv.h> @@ -116,6 +117,11 @@ void SkiaDisplayList::reset(SkRect bounds) { new (&allocator) LinearAllocator(); } +void SkiaDisplayList::output(std::ostream& output, uint32_t level) { + DumpOpsCanvas canvas(output, level, *this); + mDrawable->draw(&canvas, nullptr); +} + }; // namespace skiapipeline }; // namespace uirenderer }; // namespace android |