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(395)

LayerTreeHost Core Lifecycle and Commit Methods

LayerTreeHost Core Lifecycle and Commit Methods

The provided text comprises extensive documentation of the LayerTreeHost class, a foundational component in a compositing system (likely Chromium's cc layer). It thoroughly details the object's lifecy...

18 Nov 202543min

Layer Tree Host Impl: Core Compositor Pipeline

Layer Tree Host Impl: Core Compositor Pipeline

The sources provide detailed excerpts from the C++ implementation of the LayerTreeHostImpl class, a fundamental component of the Chromium compositor that manages rendering operations and state on the ...

17 Nov 202542min

cc Elastic Overscroll Architecture Deep Dive

cc Elastic Overscroll Architecture Deep Dive

The source provides an architectural overview of how elastic overscroll (the "rubber-banding" effect) is implemented within the Chromium Compositor (CC) for both the main viewport and individual scrol...

16 Nov 202533min

SyncedProperty: Cross-Thread Compositor Synchronization

SyncedProperty: Cross-Thread Compositor Synchronization

The source provides a detailed technical exploration of SyncedProperty, a critical synchronization mechanism within Chromium's compositor (cc) designed to manage properties updated concurrently on bot...

16 Nov 202532min

Blink's PendingLayer: Bridge Between Paint and Compositor

Blink's PendingLayer: Bridge Between Paint and Compositor

The document provides an extensive technical overview of the PendingLayer class, a critical internal component within Blink’s Composite After Paint (CAP) architecture. PendingLayer acts as a liaison, ...

15 Nov 202530min

RasterSource and Rendering Pipeline

RasterSource and Rendering Pipeline

The source provides an extensive technical overview of the RasterSource concept within the Chromium browser's rendering pipeline. This component serves as a crucial, immutable, and thread-safe contain...

14 Nov 202532min

Containing Blocks in CSS and Blink Layout

Containing Blocks in CSS and Blink Layout

The source provides a highly technical, in-depth analysis of the concept of containing blocks in CSS layout, explaining how these invisible boundaries determine the sizing and positioning of elements,...

13 Nov 202554min

Chromium Compositor Scroll and Gesture Event Handling

Chromium Compositor Scroll and Gesture Event Handling

The source text explains how Chromium handles gesture and scroll events within its input pipeline, particularly focusing on the interaction between the Blink/UI thread and the compositor thread. It de...

12 Nov 202536min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
tomprat-med-gunnar-tjomlid
rss-avskiltet
nasjonal-sikkerhetsmyndighet-nsm
teknisk-sett
energi-og-klima
smart-forklart
elektropodden
rss-impressions-2
shifter
rss-alt-vi-kan
pedagogisk-intelligens
rss-ki-praten
teknologi-og-mennesker
hans-petter-og-co
fornybaren
rss-for-alarmen-gar
rss-snakk-om-sikkerhet
rss-heis