[PaintWorklet] Build right paint callback according to paint_arguments
In my previous CL: https://chromium-review.googlesource.com/c/chromium/src/+/879110 I simply did null check for the |paint_arguments|, and return a nullptr when it is null. There is a better way to handle it, which is to build the paint callback function without the |paint_arguments| if it is null. This CL should not change any behavior. We can use the existing tests to verify this. We already have a PaintWorkletTest for that and a bunch of layout tests to ensure the correct behavior. Bug: 803026, 804206 Change-Id: I07b2f58dfe88ccbb5ac27d7268eb228ea101f5fc Reviewed-on: https://chromium-review.googlesource.com/880886Reviewed-by:Robert Flack <flackr@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#531396}
Showing
Please register or sign in to comment