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)

cc::ScrollTree

cc::ScrollTree

The source text provides an exhaustive technical overview of the Scroll Property Tree (cc::ScrollTree) within the Chromium compositor architecture, which is critical for enabling smooth, off-main-thre...

2 Marras 202547min

cc::EffectTree

cc::EffectTree

The source provides an extensive technical explanation of the Effect Property Tree within the Chromium compositor, which is crucial for managing how visual effects are applied to web content. This tre...

2 Marras 20251h 1min

cc::ClipTree

cc::ClipTree

The source provides an extensive technical overview of the ClipTree within Chromium's compositor property tree architecture, explaining its critical role in managing geometric clipping. The ClipTree i...

1 Marras 20251h 13min

cc::TransformTree

cc::TransformTree

source provides a highly detailed technical overview of the Transform Property Tree within the Chromium compositor, which is a core component of the RenderingNG architecture responsible for all coordi...

1 Marras 20251h 11min

cc::LayerImpl: Compositor Layer Deep Dive

cc::LayerImpl: Compositor Layer Deep Dive

The sources provide an exhaustive technical explanation of the cc::LayerImpl class, which is the core representation of a visual element within Chromium's multi-threaded rendering pipeline. These laye...

1 Marras 20251h 8min

Chromium Tile Raster Transform Propagation Audit

Chromium Tile Raster Transform Propagation Audit

This detailed audit examines the complete code path within Chromium that determines the raster_transform_ property of a cc::Tile, which is an immutable scale and translation used during rasterization....

31 Loka 202528min

Chromium Compositor Tile Raster Transform Path Map

Chromium Compositor Tile Raster Transform Path Map

The source provides an exhaustive technical mapping of how the Tile::raster_transform_ field is initialized and maintained within the Chromium compositor. It explains that this transform, which consis...

31 Loka 202527min

(ALT) Chromium Compositor PictureLayerImpl Deep Dive

(ALT) 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 202540min