Chromium Code Reviews
Descriptionservices/ui: Use a gpu::GpuChannelHost when creating ui::OutputSurface.
There are two users of ui::OutputSurface, and this change makes things more
correct for both. Because:
. renderer: RenderThreadImpl already creates the GpuChannelHost instance
synchronously before creating the OutputSurface in non-mus. This does the same
for mus, instead of potentially delaying the GpuChannelHost creation (or doing
it in the compositor thread).
. ui or browser: Before this change, SurfaceContextFactory would create the
OutputSurface, and immediately set it on the Compositor, leading to the
synchronous creation of GpuChannelHost. This change just makes that more
obvious, and creates the GpuChannelHost synchronously first before creating
the OutputSurface.
This change also makes it possible to simplify ui::GpuService to not be usable
from multiple threads.
BUG=638647
Committed: https://crrev.com/12e259d5a209aa333c5cf748bffcad031e173786
Cr-Commit-Position: refs/heads/master@{#413011}
Patch Set 1 #Patch Set 2 : mus-demo #
Total comments: 8
Patch Set 3 : . #
Total comments: 2
Patch Set 4 : . #Messages
Total messages: 31 (22 generated)
|