forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix no gl context issue in D3DImageBacking::Create*()
With Graphite, D3DImageBacking can be created and destroyed without any GL context current. It will cause no gl context issue, because we create GL texture during creating and cache textures in the backing. Fix the problem by deferring gl texture creation and just cache weak pointers to the gl textures. So the GL textures will be destroyed if they are not used by any GL representations. Bug: 1499650,1499739 Change-Id: Id22c556ba24da5848c87cf2ce528aa38d061c057 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5006653 Reviewed-by: Saifuddin Hitawala <hitawala@chromium.org> Auto-Submit: Peng Huang <penghuang@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Reviewed-by: Frank Liberato <liberato@chromium.org> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1222368}
- Loading branch information
Showing
5 changed files
with
123 additions
and
129 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
Oops, something went wrong.