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

B3: RenderFrameHost: Core Document Lifeline

B3: RenderFrameHost: Core Document Lifeline

The source documentation provides a detailed analysis of the RenderFrameHost (RFH) and its implementing class, RenderFrameHostImpl, which constitute the essential browser-side representation of every ...

28 Nov 202534min

B2: Frame Tree Navigation and Process Management

B2: Frame Tree Navigation and Process Management

This document details the Chromium browser's Layer 2 architecture, which is responsible for coordinating the structure and navigation of complex webpages across multiple renderer processes. The core o...

27 Nov 202544min

B1: WebContents: The Foundation of Chromium Tabs

B1: WebContents: The Foundation of Chromium Tabs

The text thoroughly analyzes the foundational structure of Chromium's architecture, which controls the browser window and tab strip elements. This system relies on a central Browser class acting as th...

27 Nov 202547min

B0: Governing Browser Windows and Tabs

B0: Governing Browser Windows and Tabs

The text thoroughly analyzes the foundational structure of Chromium's architecture, which controls the browser window and tab strip elements. This system relies on a central Browser class acting as th...

27 Nov 202535min

CSS Anchor Positioning in LayoutNG

CSS Anchor Positioning in LayoutNG

The sources provide a comprehensive specification deep dive into CSS Anchor Positioning, a modern layout module designed to position elements like tooltips and popovers relative to an anchor without r...

27 Nov 202545min

Layer Invalidation to Partial Swap

Layer Invalidation to Partial Swap

The source details Chromium's damage tracking architecture, a critical mechanism within the cc compositor that identifies regions of the screen requiring redrawing to ensure rendering efficiency. This...

27 Nov 202535min

Native Carousel Controls via CSS Pseudos

Native Carousel Controls via CSS Pseudos

The source outlines a technical proposal for new CSS pseudo-elements aimed at solving the "Carousel Problem" by allowing developers to build accessible, interactive carousels without relying on comple...

26 Nov 202531min

Structured Mathematics: LaTeX, Conversion, and MathML

Structured Mathematics: LaTeX, Conversion, and MathML

The sources provide a comprehensive analysis of the LaTeX typesetting system, focusing heavily on the methods and standards required to transfer complex scientific documents from print-ready formats t...

26 Nov 202538min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
bilar-med-sladd
market-makers
natets-morka-sida
rss-elektrikerpodden
skogsforum-podcast
rss-laddstationen-med-elbilen-i-sverige
bli-saker-podden
rss-uppgang-och-fall
rss-technokratin
bosse-bildoktorn-och-hasse-p
hej-bruksbil
rss-veckans-ai
rss-ai-med-katarina-gospic-och-viggo-cavling
rss-sogeti-sweden-podcasts
rss-kack-tech-podcast
rss-fabriken-2
rss-en-ai-till-kaffet
rss-bakom-boken