New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 606058 link

Starred by 5 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

Eliminate GLSurfaceAdapter

Project Member Reported by fsam...@chromium.org, Apr 22 2016

Issue description

GLSurfaceAdapter seems to be an unnecessary extra layer to GLSurface. Let's remove it.
 

Comment 1 by danakj@chromium.org, Apr 22 2016

Cc: siev...@chromium.org
Cc: vollick@chromium.org
I want to clarify what we intend in this bug before I write a lot of possibly unnecessary code. Completion here means:

* deletion of GLSurfaceAdapter
* deletion of PassThroughImageTransportSurface (PThImTS)
* and hence removing the indirection layer wrapping a GLSurface with a PThImTS.

To do this while preserving the existing functionality, I will have to add a mechanism by which a GLSurface instance can provide similar functionality as PThImTS: recording latency info and augmenting the SwapCompletionCallback.

If this is the intent: how sensitive are we to adding a small number of pointer-sized fields to GLSurface?


Or, did we just mean the (much simpler) task of folding GLSurfaceAdapter into PThImTS?





Comment 4 by piman@chromium.org, May 6 2016

The latter seems like an obvious win which wouldn't cause any layering issue.

Moving LatencyInfo into GLSurface may be more objectionable - it would be a bit of a layering wart. I would probably prefer moving that functionality into GpuCommandBufferStub if possible. Maybe using a hook into GLSurface (swap observer or some other mechanism)?
SGTM. I'll do the simple case first.

Thanks for idea of moving latency tracking into GpuCommandBufferStub -- it hadn't occurred to me and I think it makes the follow on change much simpler than the scheme I had sketched out yesterday.
Status: Started (was: Assigned)
Components: Internals>MUS
Labels: Proj-Mustash
Components: -MUS -Internals>MUS Internals>GPU>Internals
Labels: -gpurefactor -Type-Bug -mus -Pri-2 -mustash1 -mustash -Proj-Mustash Proj-Mustash-Mus-GPU Proj-Mustash-Milestone-Tadpole Pri-3 Type-Task
Labels: -Proj-Mustash-Mus-GPU
Cleaning up old Proj-Mustash labels.

Sign in to add a comment