viz::Display::DrawAndSwap
Blink2865 Okt 2025

viz::Display::DrawAndSwap

In Chrome’s rendering pipeline, the Viz service in the GPU process owns a viz::Display object. A Display is responsible for taking aggregated CompositorFrames (produced by the SurfaceAggregator), drawing them using the appropriate renderer (Skia or software) and swapping the resulting buffer to the physical output surface. The method Display::DrawAndSwap(const DrawAndSwapParams& params) performs this work. The display scheduler calls DrawAndSwap for every frame it wants to display. On some platforms such as Lacros, DrawAndSwap uses the root surface size as the display’s size; the note on display size explains that display_->Resize sets current_surface_size_, and DrawAndSwap uses this value to determine whether the current frame needs a resize.

Episoder(466)

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
teknisk-sett
tomprat-med-gunnar-tjomlid
energi-og-klima
shifter
nasjonal-sikkerhetsmyndighet-nsm
smart-forklart
rss-ki-praten
rss-impressions-2
pedagogisk-intelligens
hans-petter-og-co
rss-ai-forklart
elektropodden
rss-alt-som-gar-pa-strom
rss-bits-and-bytes-for-advokater
rss-polypod
rss-for-alarmen-gar
kunstig-intelligens-med-morten-goodwin
rss-garasjen