Skip to content

Commit

Permalink
gapis/api/gvr: Consider gvr_frame_get_framebuffer_object
Browse files Browse the repository at this point in the history
Use these commands to help populate GVR frame -> gles framebuffers.
  • Loading branch information
ben-clayton committed Aug 24, 2017
1 parent fd296a4 commit 7a03c1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gapis/api/gvr/framebindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (r *FrameBindingsResolvable) Resolve(ctx context.Context) (interface{}, err
cmd.extras.Observations().ApplyReads(s.Memory.ApplicationPool())
frame := cmd.Frame.Read(ctx, cmd, s, nil)
out.submitBuffer[id] = frameToBuffer[frame]
case *Gvr_frame_get_framebuffer_object:
frameToBuffer[GvrFrameᵖ(cmd.Frame)] = gles.FramebufferId(cmd.Result)
case *gles.GlBindFramebuffer:
if callerID := cmd.Caller(); callerID != api.CmdNoID {
switch caller := cmds[callerID].(type) {
Expand Down

0 comments on commit 7a03c1f

Please sign in to comment.