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

Subnormal Floating-Point Numbers: Technical Report

Subnormal Floating-Point Numbers: Technical Report

The comprehensive technical report provides an in-depth analysis of subnormal floating-point numbers, which are tiny values in the IEEE-754 standard designed to facilitate gradual underflow between th...

24 Loka 202545min

OKLab Color Space in Web Development

OKLab Color Space in Web Development

The sources provide an extensive technical explanation of the OKLab color space and its implementation within web technologies, primarily focusing on the Chromium (Blink/Skia) rendering engine. OKLab ...

24 Loka 202532min

Physics-Based CSS Animations in Blink's Compositor

Physics-Based CSS Animations in Blink's Compositor

The sources provide an extensive overview of the transition from traditional, fixed-curve web animations to more expressive physics-based (spring) animations that mimic real-world motion. They detail ...

24 Loka 202526min

Chromium Viewport Scroll and Transform Hierarchy

Chromium Viewport Scroll and Transform Hierarchy

The provided document explains how Chromium's rendering engine structures the components responsible for scrolling and visual positioning, primarily through nested scroll property trees and transform ...

23 Loka 202525min

Chromium Blink's Paint Property Tree Printer Utility

Chromium Blink's Paint Property Tree Printer Utility

sources provide an in-depth examination of the PaintPropertyTreePrinter, a crucial diagnostic utility within the Chromium Blink rendering engine used for debugging and verifying the structure of paint...

23 Loka 202535min

CPU Stack Unpacked

CPU Stack Unpacked

CPU Stack

23 Loka 20251h 11min

R-Trees in Theory and Chromium Rendering

R-Trees in Theory and Chromium Rendering

The source provides an extensive overview of R-trees, which are hierarchical data structures designed for efficient spatial indexing, detailing their theoretical foundations and several variants like ...

22 Loka 202548min

Interactive Rebase in nvim

Interactive Rebase in nvim

These sources provide an extensive guide on executing a complete interactive Git rebase workflow entirely within the Neovim text editor. The process heavily relies on the vim-fugitive plugin for Git c...

19 Loka 202538min