Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f70a4e86 authored by John Reck's avatar John Reck Committed by Automerger Merge Worker
Browse files

Merge "Make active Context valid while buildLayer() When...

Merge "Make active Context valid while buildLayer() When RecordingCanvas::drawPoints() is executed through buildLayer(), active Context is null. It leads to crash" into main am: d773035f am: 691b495c

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2821330



Change-Id: If8634eda282413883914acb25d570fb549a4bf64
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 08575aff 691b495c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -936,6 +936,7 @@ void CanvasContext::buildLayer(RenderNode* node) {
    // buildLayer() will leave the tree in an unknown state, so we must stop drawing
    stopDrawing();

    ScopedActiveContext activeContext(this);
    TreeInfo info(TreeInfo::MODE_FULL, *this);
    info.damageAccumulator = &mDamageAccumulator;
    info.layerUpdateQueue = &mLayerUpdateQueue;