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.

Avsnitt(397)

Advanced Chrome on Android Diagnostics and Profiling

Advanced Chrome on Android Diagnostics and Profiling

This comprehensive guide details the advanced diagnostic and performance tools available for developers working on Chrome for Android. It categorizes tools based on the specific issue being analyzed, ...

9 Dec 202542min

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 Dec 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 Dec 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 Dec 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 Dec 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 Dec 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 Dec 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 Dec 20251h 5min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
market-makers
bilar-med-sladd
natets-morka-sida
rss-elektrikerpodden
rss-laddstationen-med-elbilen-i-sverige
skogsforum-podcast
bosse-bildoktorn-och-hasse-p
rss-veckans-ai
rss-uppgang-och-fall
bli-saker-podden
rss-en-ai-till-kaffet
rss-sogeti-sweden-podcasts
rss-ai-med-katarina-gospic-och-viggo-cavling
rss-technokratin
garagehang
rss-digitala-influencer-podden
rss-it-sakerhetspodden
rss-fabriken-2