-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RawDraw: fix glyph missing during renderer destruction
Right now, when renderer is destroy, we just consider all cached font can be released immediately. However there could be several frames which are still using those cached font. So we added a local ref_count_ for the font's discardable handle. When it reaches 0, it means there isn't any reference in viz. We can safely release it when the renderer is destroyed already. (cherry picked from commit 410ae6b) Bug: 1316058,1316352 Change-Id: I8febc74f02ab66ba9ad8aa519fe44230223e5a2c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3580848 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#992833} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3596830 Auto-Submit: Peng Huang <penghuang@chromium.org> Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org> Cr-Commit-Position: refs/branch-heads/5005@{#49} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information
Showing
3 changed files
with
44 additions
and
18 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