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

Chromium Input Handling Deep Dive: Compositor and Proxy

Chromium Input Handling Deep Dive: Compositor and Proxy

The sources provide an extensive examination of Chromium’s input handling pipeline, focusing on the roles of the InputHandler and InputHandlerProxy within the renderer's dedicated compositor thread. T...

8 Marras 202540min

Web View Transitions: Technical Deep Dive

Web View Transitions: Technical Deep Dive

The second source introduces the View Transition API, a modern web platform feature that allows developers to create smooth, animated transitions between different UI states or entire pages by automat...

8 Marras 202547min

Chrome Compositor: Raster-Inducing Scrolling Explained

Chrome Compositor: Raster-Inducing Scrolling Explained

The source provides an extensive technical explanation of raster-inducing scrolling within the Chrome browser's rendering pipeline, focusing on the sophisticated architecture of the Chrome Compositor ...

8 Marras 202542min

Chromium ContentBrowserTest Architecture and Practice

Chromium ContentBrowserTest Architecture and Practice

The source provides an extensive overview of Chromium's ContentBrowserTest system, which functions as an integration test harness designed for the content layer of the browser. These tests operate by ...

6 Marras 202544min

Blink Compositor Promotion of CSS Animations

Blink Compositor Promotion of CSS Animations

The technical sources provide an extensive analysis of how the Blink rendering engine (used in Chromium/Chrome) determines whether a CSS animation can be executed on the compositor thread instead of t...

6 Marras 202536min

Blink Compositor Gesture Lifecycle in InputHandlerProxy

Blink Compositor Gesture Lifecycle in InputHandlerProxy

The source text explains the detailed lifecycle of a gesture scroll sequence within the Chromium rendering engine, focusing on the role of the InputHandlerProxy component. This component acts as a cru...

6 Marras 202525min

WebMCP: AI Functionality for the Browser

WebMCP: AI Functionality for the Browser

The provided sources introduce and detail WebMCP (Web Model-Context Protocol), an emerging web standard designed to enable seamless, structured communication between AI agents (like LLM-based assistan...

6 Marras 202530min

React Fiber, Concurrency, and Reconciliation

React Fiber, Concurrency, and Reconciliation

The source provides an extensive overview of React's internal architecture, focusing on the Fiber reconciliation engine and the concept of concurrent rendering. It explains how declarative JSX is comp...

4 Marras 20251h 14min