Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment