Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "cc/paint: Use std::unique_ptr to wrap paths in PaintOps"
This reverts commit 85aae9f. Reason for revert: ~3.3% motionmark regression - see crbug.com/1347691 Original change's description: > cc/paint: Use std::unique_ptr to wrap paths in PaintOps > > We want to statically assert that PaintOps are trivially relocatable so > that the PaintOpBuffer memcpy on realloc optimization is safe. One way > of doing that is to mark PaintOps with clang's trivial_abi attribute > which only works if the types contained are also trivially relocatable. > > ThreadsafePath is a thin subclass of SkPath contained in ClipPathOp and > DrawPathOp. Since SkPath contains std::atomics which lack copy ctors, it > cannot be simply marked as trivial_abi so the next best thing is to wrap > paths in a std::unique_ptr which is what this CL does. Also add move > constructors since these will be required when the types are marked as > trivial_abi in a subsequent CL. > > Bug: 1302745 > Change-Id: I4879a6ade6620bea344f61cbf046e4a9e6b6a9c9 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3787235 > Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> > Commit-Queue: Peter Boström <pbos@chromium.org> > Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> > Reviewed-by: Peter Boström <pbos@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1028444} Bug: 1302745, 1347691 Change-Id: I2e9ab91ab687bb725140130f2086a32f8c24ba19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3825577 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by: Peter Boström <pbos@chromium.org> Commit-Queue: Peter Boström <pbos@chromium.org> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1033961}
- Loading branch information
Showing
5 changed files
with
52 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters