Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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/880886 Reviewed-by: Robert Flack <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Commit-Queue: Xida Chen <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#531396}(cherry picked from commit 329d492) Reviewed-on: https://chromium-review.googlesource.com/884554 Reviewed-by: Xida Chen <[email protected]> Cr-Commit-Position: refs/branch-heads/3325@{#83} Cr-Branched-From: bc084a8-refs/heads/master@{#530369}
- Loading branch information