DescriptionDo not call preDraw for NOOP.
Fixes a bug where playing back SKPs generated by chrome using
--enable-deferred-image-decoding hit an assert in SkDebuggerGUI.
SkOffsetPicturePlayback adds to an array in preDraw, and expects
the length of that array to be the same as the list of commands
in its SkDebugCanvas. In the asserting case, preDraw was called
but then SkPicturePlayback skipped drawing to the SkDebugCanvas,
so the command was not propagated to the SkDebugCanvas, and the
counts did not match.
Closing in favor of https://codereview.chromium.org/15746003/
Patch Set 1 #
Total comments: 2
Messages
Total messages: 4 (0 generated)
|