-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor WebXR Graphics Delegates classes
While working to implement the Cardboard Overlay, I've hit some road blocks to just re-using the existing GraphicsDelegateWin; most likely because we do not use command-buffer based gl on Android. Ultimately it seems that we'll need to implement a new GraphicsDelegateAndroid to implement the Overlay for both Cardboard and OpenXR. Further, some of the methods in GraphicsDelegateWin weren't actually used the way that they claimed to be anymore. Mainly that everything was called from the same thread and thus initialization no longer needed to be split up. The following refactors were made to enable eventually implementing a GraphicsDelegateCardboard: 1) Simplify interface of GraphicsDelegateWin 2) Move methods that VrBrowserRendererThreadWin calls into GraphicsDelegate to facilitate creation of a GraphicsDelegateAndroid 3) Collapse BaseGraphicsDelegate into it's only remaining child (the GvrGraphicsDelegate) - GVR is deprecated and will be removed soon and this allowed explicit logic around the NOTREACHED methods to be better documented Bug: 1429376 Change-Id: Id1f988a6c8869dbf563b2569cafb435fe9c92d3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4936854 Reviewed-by: Piotr Bialecki <bialpio@chromium.org> Commit-Queue: Alexander Cooper <alcooper@chromium.org> Auto-Submit: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#1212861}
- Loading branch information
1 parent
d091f16
commit 63f82db
Showing
11 changed files
with
184 additions
and
185 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.