[PaintWorklet] Fix crash when hitting breakpoint during lifecycle
If we put a devtool's breakpoint in the paint() function and start debugging, the renderer will crash when we resize the window or switch to the element tab. This is because when we are in the middle of lifecycle when we get to the paint function, and anything triggers layout update will cause a renderer crash. The fix in CL is that when we hit a breakpoint, check if we are in the middle of lifecycle or not, if we are, flip a bit to be true in the |LocalFrameView|, so that later on whenever there is a layout update we can check that bit and do early exit. Bug: 788219 Change-Id: I4fbafab868508ed4ba453339d91364253d17f523 Reviewed-on: https://chromium-review.googlesource.com/899484 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#537004}
Showing
Please register or sign in to comment