DescriptionIntroduce ChromeVR to Chrome on Android (behind a build flag)
This CL implements the following:
1. Adds a new activity called VrActivity. It extends from AsyncInitializationActivity
and can only be launched from Daydream app.
2. Adds a VrShell and its native part. VrShell has a GLSurfaceView as presentation
view for drawing left and right images and an inheriated(from GvrLayout) scanline
racing view(another GLSurfaceView).
3. Created a texture quad that is reserved for compositor to use to output content
frames. The quad is positioned at (0.0, 0.0, -1.0)
Known issue:
1. The quad is black as we haven't hookup a compositor to draw frames
2. tabs are not shared with ChromeTabbedActivity
To test this, add "enable_vr_shell=true" in your gn args.
BUG=638642
Committed: https://crrev.com/16e132a1b213a07254d25b50a42ba9e9304d3f75
Cr-Commit-Position: refs/heads/master@{#414890}
Patch Set 1 #
Total comments: 5
Patch Set 2 : release SurfaceTexture in shutdown #
Total comments: 6
Patch Set 3 : address review #Patch Set 4 : rebase #Patch Set 5 : compile errors #
Total comments: 5
Patch Set 6 : Rebaes and address 2 in 3 reviews #
Total comments: 11
Patch Set 7 : Address more reviews #
Total comments: 2
Patch Set 8 : use MainTheme and remove code in compositor_view. Will implement compositor related plumbing in a s… #Patch Set 9 : remove a unneccessary null check #
Total comments: 2
Patch Set 10 : add comment as suggested by Daniel #Depends on Patchset: Messages
Total messages: 52 (26 generated)
|