-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[svg] Add current node to render context
A couple of render-time decisions require knowledge of object bounding boxes, such as gradients (whose default coordinate space is "objectBoundingBox". This CL adds the current node being rendered to the render context so that it can be accessed down-stack (for example, when gradients are being resolved and added to the paint as Skia shaders). Each node will overload the bounds computation, for now it just returns empty bounds for all nodes. TBD if we want to cache bounds somewhere, either inside the node object or in a separate cache. Bug: skia:10842 Change-Id: I40061ffedcb840e4dd28dba6351421f5b4fc904b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/329221 Commit-Queue: Tyler Denniston <tdenniston@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
- Loading branch information
1 parent
01b05e5
commit 53281c7
Showing
5 changed files
with
35 additions
and
8 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