diff options
author | John Reck <jreck@google.com> | 2021-01-13 22:39:32 -0500 |
---|---|---|
committer | John Reck <jreck@google.com> | 2021-01-14 03:55:58 +0000 |
commit | be67195c44163c03d88af43b9d58b7e22139c0a9 (patch) | |
tree | 07d5f55ece853636eea9d7273b84fc2d7080dd2b /libs/hwui/pipeline/skia/SkiaPipeline.cpp | |
parent | 844516c4946fa200afab9575cb154a962779b74f (diff) |
Convert DisplayList to a value-type wrapper
Make DisplayList its own type instead of an alias,
pushing the Skia aspect behind it mostly. Removes a bunch
of manual memory management and opens the door to DisplayList
being a union type with multiple implementations
Test: builds (somehow), boots, hwuiunit passes, CtsUiRendering passes
Change-Id: I1d7806aa3afc5d9ece08b06959920078a5814c59
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaPipeline.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaPipeline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaPipeline.cpp b/libs/hwui/pipeline/skia/SkiaPipeline.cpp index 6e7493cb443d..d14dc3672b99 100644 --- a/libs/hwui/pipeline/skia/SkiaPipeline.cpp +++ b/libs/hwui/pipeline/skia/SkiaPipeline.cpp @@ -98,7 +98,7 @@ void SkiaPipeline::renderLayersImpl(const LayerUpdateQueue& layers, bool opaque) continue; } SkASSERT(layerNode->getLayerSurface()); - SkiaDisplayList* displayList = (SkiaDisplayList*)layerNode->getDisplayList(); + SkiaDisplayList* displayList = layerNode->getDisplayList().asSkiaDl(); if (!displayList || displayList->isEmpty()) { ALOGE("%p drawLayers(%s) : missing drawable", layerNode, layerNode->getName()); return; @@ -288,7 +288,7 @@ bool SkiaPipeline::setupMultiFrameCapture() { // recurse through the rendernode's children, add any nodes which are layers to the queue. static void collectLayers(RenderNode* node, LayerUpdateQueue* layers) { - SkiaDisplayList* dl = (SkiaDisplayList*)node->getDisplayList(); + SkiaDisplayList* dl = node->getDisplayList().asSkiaDl(); if (dl) { const auto& prop = node->properties(); if (node->hasLayer()) { |