blink::PaintArtifactCompositor
Blink28610 Loka 2025

blink::PaintArtifactCompositor

turns chunks into compositor layers & updates cc property trees.

Consumes the new PaintArtifact and does the layerization and property‑tree updates required for compositor draw. It supports fast paths when only values changed (e.g., opacity) or when a scroll only induces raster invalidation, avoiding full rebuilds. It owns a subtree of cc layers corresponding to the artifact. (Chromium Git Repositories)

Key fields

  • scoped_refptr<cc::Layer> root_layer_ — root of the Blink‑owned layer subtree.

  • UpdateType needs_update_ — kRepaint vs kFull (or scroll fast path).

  • Caches/maps for synthesized mask clips and scroll translations seen while layerizing. (Chromium Git Repositories)

Most important methods

  • bool TryFastPathUpdate(const PaintArtifact&) — take a cheap path (no topology change). (Chromium Git Repositories)

  • void Update(const PaintArtifact&, const ViewportProperties&, const StackScrollTranslationVector&, Vector<std::unique_ptr<cc::ViewTransitionRequest>>) — full reconciliation to layers + cc property trees. (Chromium Git Repositories)

  • “Direct update” helpers like DirectlyUpdateCompositedOpacityValue(...), DirectlyUpdateScrollOffsetTransform(...) — skip rebuilds for common animations/scrolling. (Chromium Git Repositories)

Hands off to: PropertyTreeManager (internally) to mirror Blink property nodes to cc trees, ready for commit to the compositor thread.


Jaksot(391)

7 Blink View Transition Discovery and UA Stylesheet Generation

7 Blink View Transition Discovery and UA Stylesheet Generation

This document details how the Blink rendering engine manages the technical lifecycle of View Transitions by coordinating DOM updates with visual animations. Once a developer triggers a transition, the...

27 Tammi 31min

6 Blink and Compositor Handshake in View Transitions

6 Blink and Compositor Handshake in View Transitions

The provided text explains the technical handshake between the Blink rendering engine and the compositor during a web view transition. To ensure visual continuity, the system captures a snapshot of th...

27 Tammi 30min

Evolution of CSS: Working Group Drafts and Processes

Evolution of CSS: Working Group Drafts and Processes

The provided text outlines the operations and standardizing procedures of the W3C CSS Working Group, which manages the evolution of web presentation through a modular specification system. It details ...

27 Tammi 38min

5 View Transition Mechanics: Pre-paint and Snapshot Coordination

5 View Transition Mechanics: Pre-paint and Snapshot Coordination

The provided text explains how the Blink rendering engine manages view transitions by utilizing a stable coordinate space known as the snapshot root. This mechanism ensures that animations remain cons...

27 Tammi 27min

4 Blink View Transition Pseudo-Element Tree and Layout Integration

4 Blink View Transition Pseudo-Element Tree and Layout Integration

The provided text explains how the Blink rendering engine manages View Transitions by generating a temporary pseudo-element subtree to represent page changes. This system acts as an overlay, capturing...

26 Tammi 39min

GEM Modern CSS Scroll Positioning and Visibility Specifications

GEM Modern CSS Scroll Positioning and Visibility Specifications

These sources detail the CSS and DOM specifications that govern how elements are positioned and animated when moved into a user's visible area. The documentation introduces scroll-padding and scroll-m...

25 Tammi 33min

[GENERAL] Modern CSS Scroll Positioning and Visibility Specifications

[GENERAL] Modern CSS Scroll Positioning and Visibility Specifications

These sources collectively define the technical standards for how web browsers handle scrolling and element visibility. The documentation details the CSSOM View Module's specific algorithm for the scr...

25 Tammi 30min

Modern CSS Scroll Positioning and Visibility Specifications

Modern CSS Scroll Positioning and Visibility Specifications

These sources collectively define the technical standards for scroll-into-view behavior within modern CSS specifications, covering how elements are positioned and animated when navigated to or targete...

25 Tammi 38min