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

Commit 691b495c 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

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



Change-Id: Iaa1fef32bb164a1353f92c54b97f6b595f72d578
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 33ccf035 d773035f
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;