Chromium Code Reviews
DescriptionMus: Move creation of cc::Display to DisplayCompositor
What type of ContextProvider, and OutputSurface we create is a display-
compositor-specific detail and not a CompositorFrameSink specific detail.
A top-level GpuCompositorFrameSink needs a cc::Display to update the display's
surface, but it doesn't need to know how the cc::Display was set up.
This CL moves cc::Display creation to DisplayCompositor and passes in
a unique_ptr to GpuCompositorFrameSink. That way, GpuCompositorFrameSink becomes
a generic implementation that doesn't care whether an InProcessContextProvider
or some other ContextProvider was used. This will allow this code to be
reused elsewhere in Chrome.
BUG=668126
Committed: https://crrev.com/64d953d2dbde0507b1ac81ce4768911cd870366d
Cr-Commit-Position: refs/heads/master@{#436023}
Patch Set 1 #Patch Set 2 : More cleanup #
Messages
Total messages: 12 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||