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

Chromium Development Workflow on Android

Chromium Development Workflow on Android

The source provides a comprehensive guide to the workflow for developing Chromium on Android, detailing the specialized tools required for building, deploying, and debugging the browser. It explains t...

9 Joulu 202536min

Android Internals for Chrome and Blink Developers

Android Internals for Chrome and Blink Developers

The source provides a detailed technical guide to Android internals specifically for Chrome/Blink developers, covering the fundamental infrastructure required to build, deploy, and debug the browser o...

8 Joulu 202545min

CSS display: contents: Layout, Implementations, and Accessibility

CSS display: contents: Layout, Implementations, and Accessibility

The text provides an extensive technical examination of the CSS value display: contents, which allows authors to remove an element's principal box from the rendering tree while preserving its descenda...

6 Joulu 202529min

WebView Crash: Finch Configuration Disaster

WebView Crash: Finch Configuration Disaster

The text analyzes the Android app stability crisis of March 2021, detailing how a global outage occurred when a configuration bug was deployed via Google’s remote experimentation system, Finch. This f...

6 Joulu 202532min

Hybrid Overscroll: Root Glow and Inner Bounce in WebView

Hybrid Overscroll: Root Glow and Inner Bounce in WebView

The provided text details the complex mechanisms governing overscroll behavior within the Android WebView and Chromium engine, specifically contrasting how the root content and non-root scrollable ele...

6 Joulu 202527min

WebView Feature Flags: Java to Native Compositor

WebView Feature Flags: Java to Native Compositor

The source documents examine the complex, multi-layered feature-flag architecture within Android's WebView, which is essential for controlling experimental features, field trials (Finch), and underlyi...

5 Joulu 202537min

Geometry, Immutability, and Caching in LayoutNG Fragments

Geometry, Immutability, and Caching in LayoutNG Fragments

The provided text describes Blink’s LayoutNG Fragment Tree, an immutable structure that captures the final geometry and layout results, replacing the mutable legacy layout tree. This structure is comp...

4 Joulu 20251h 5min

The CSS anchor-scope Property: Design and Blink Layout

The CSS anchor-scope Property: Design and Blink Layout

The provided text exhaustively describes the CSS anchor-scope property, a critical addition to CSS Anchor Positioning designed to prevent naming conflicts when reusing components. This property define...

4 Joulu 20251h 5min