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

Commit 29781f45 authored by Minkyoung Kim's avatar Minkyoung Kim
Browse files

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

Make active Context valid while buildLayer() When RecordingCanvas::drawPoints() is executed through buildLayer(), active Context is null.
It leads to crash

Change-Id: Iefe7fa0e056e82f07cd54fa3bfd74180f89ae726
parent 253698da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -919,6 +919,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;