viz::Display::DrawAndSwap
Blink2865 Loka 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.

Jaksot(394)

Chromium Compositor PictureLayerImpl Deep Dive

Chromium Compositor PictureLayerImpl Deep Dive

The source provides an extensive technical overview of the cc::PictureLayerImpl class, a critical component in the rendering architecture of Chromium's compositor, responsible for processing content o...

31 Loka 202536min

Chromium Compositor Picture Layer Deep Dive

Chromium Compositor Picture Layer Deep Dive

This source provides an extensive, practitioner-focused examination of the Chromium Compositor's PictureLayerImpl class and its associated tiling stack, which manages the rasterization and drawing of ...

31 Loka 202536min

Singing and Memory in Ancient Greek Oral Tradition

Singing and Memory in Ancient Greek Oral Tradition

The source materials offer an extensive analysis of how ancient Greek civilization used music and rhythm as fundamental mnemonic tools for preserving and transmitting cultural knowledge long before wi...

30 Loka 20251h 24min

Chrome Property Trees: Blink vs. Compositor Comparison

Chrome Property Trees: Blink vs. Compositor Comparison

The source provides an extensive technical comparison of the Paint Property Trees (PPTs) used in Chrome's Blink rendering engine and the corresponding Compositor Property Trees (CC) utilized by the co...

30 Loka 202553min

Chrome Blink and CC Finch Experiment Guide

Chrome Blink and CC Finch Experiment Guide

The source material is a comprehensive guide detailing the process for Google Chrome engineers to launch an A/B field trial (experiment) for changes made to the rendering engine (Blink) or the composi...

29 Loka 202544min

Chrome's CSS Scroll Snap Implementation: Blink and Compositor Deep Dive

Chrome's CSS Scroll Snap Implementation: Blink and Compositor Deep Dive

The source provides an extensive technical explanation of the implementation of CSS Scroll Snap within the Google Chrome browser, specifically detailing how the feature is managed across the Blink ren...

29 Loka 202541min

Chrome Compositor: Transform Updates Versus Scroll Offset

Chrome Compositor: Transform Updates Versus Scroll Offset

These technical documents provide an in-depth analysis of Chromium's compositor property tree mechanics, focusing on the differences between two methods for updating transform nodes: SetTransformChang...

25 Loka 202524min

X11 and Wayland Architecture, Evolution, and Chrome Integration

X11 and Wayland Architecture, Evolution, and Chrome Integration

The source provides an extensive overview of the evolution of the Linux display stack, focusing on the historical X Window System (X11) and its modern replacement, Wayland. It details the client-serve...

24 Loka 202548min