blink::PaintController
Blink28610 Okt 2025

blink::PaintController

builds the display list + paint chunks and manages caching.

As painters call into GraphicsContext, they also drive a PaintController which groups drawing into display items and paint chunks (each keyed by the current property‑tree state). It also handles reuse of cached items to avoid repaint when nothing visually changed. Output is an immutable PaintArtifact. (Chromium Git Repositories)

Key fields

  • PaintArtifact* new_paint_artifact_ — being built for this frame;

  • PaintArtifact* old_paint_artifact_ — previous frame for cache matching;

  • PaintChunker paint_chunker_ — forms chunk boundaries based on property state;

  • PaintControllerPersistentData* persistent_data_ — holds prior artifact & subsequences. (Chromium Git Repositories)

Most important methods

  • UpdateCurrentPaintChunkProperties(const PropertyTreeStateOrAlias&) — starts/updates the current chunk when property state changes. (Chromium Git Repositories)

  • template <class T> CreateAndAppend(...) — appends a display item (records drawing op + metadata). (Chromium Git Repositories)

  • bool UseCachedItemIfPossible(...) — reuses prior items to skip repaints. (Chromium Git Repositories)

  • void BeginFrame(const void* frame) / FrameFirstPaint EndFrame(const void* frame) — delimit a painting pass for metrics + cache book‑keeping. (Chromium Git Repositories)

  • (Internals also maintain id→index maps to support O(1)/linear cache lookups.) (Chromium Git Repositories)

Hands off to: the PaintArtifact it produces.


Episoder(454)

Late-Bound Color Slots for Composited Raster-Inducing Paint

Late-Bound Color Slots for Composited Raster-Inducing Paint

This text proposes a sophisticated architectural shift in Chromium’s rendering engine to enable more efficient color animations by adopting a model similar to Raster-Inducing Scroll (RIS). Instead of ...

21 Mar 54min

Chromium Blink Paint Worklet Architecture and Implementation Analysis

Chromium Blink Paint Worklet Architecture and Implementation Analysis

These sources detail the architectural implementation of CSS Paint Worklets within the Blink and Chromium rendering engines. The system operates as a multi-layered pipeline that transforms JavaScript ...

21 Mar 51min

[DBL] Raster-Inducing Scroll and Paint-Command Generation in Chromium

[DBL] Raster-Inducing Scroll and Paint-Command Generation in Chromium

These sources describe the architecture of raster-inducing scroll (RIS) within the Blink and Chromium rendering pipelines. This specialized "middle mode" allows the compositor to handle scrolling asyn...

21 Mar 37min

Raster-Inducing Scroll and Paint-Command Generation in Chromium

Raster-Inducing Scroll and Paint-Command Generation in Chromium

These sources describe the architecture of raster-inducing scroll (RIS) within the Blink and Chromium rendering pipelines. This specialized "middle mode" allows the compositor to handle scrolling asyn...

21 Mar 44min

Strategic Engineering

Strategic Engineering

These sources provide a comprehensive framework for strategic thinking tailored to individual contributors at Google and within the Chromium ecosystem. Instead of viewing strategy as a high-level mana...

20 Mar 42min

The Strategic Mind: Beyond Tactical Thinking

The Strategic Mind: Beyond Tactical Thinking

These sources provide a comprehensive guide to distinguishing strategic thinking from tactical execution, framing the former as a high-altitude cognitive skill centered on causal logic and leverage. W...

19 Mar 1h 4min

The Architecture of CSS Support Queries

The Architecture of CSS Support Queries

The provided text offers a technical deep dive into @supports, the CSS conditional rule used to perform feature queries for modern web development. It explains how the browser distinguishes between su...

16 Mar 53min

Architectural Foundations of the Web Platform Design Principles

Architectural Foundations of the Web Platform Design Principles

The provided text analyzes the W3C Web Platform Design Principles, framing the document as a foundational "constitution" that ensures the web remains safe, interoperable, and user-centric. It explains...

16 Mar 1h 1min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
teknisk-sett
smart-forklart
elektropodden
energi-og-klima
nasjonal-sikkerhetsmyndighet-nsm
rss-ki-praten
rss-impressions-2
shifter
fornybaren
tomprat-med-gunnar-tjomlid
rss-ai-forklart
rss-heis
teknologi-og-mennesker
i-loopen
rss-alt-vi-kan
rss-alt-som-gar-pa-strom
rss-praktisk-proptech
rss-bouvet-bobler