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

Iframe Layout Coordination and Cooperative Sizing in Blink

Iframe Layout Coordination and Cooperative Sizing in Blink

The provided text describes the technical evolution of iframe layout coordination within Google's Blink rendering engine. Traditionally, browsers treat iframes as isolated boxes with a default size of...

9 Feb 37min

Chrome Scheduler: Frame Orchestrator

Chrome Scheduler: Frame Orchestrator

9 Feb 35min

Blink Rendering Engine: Frame, Document, and View Lifecycle

Blink Rendering Engine: Frame, Document, and View Lifecycle

In the Blink rendering engine, LocalFrame, LocalFrameView, and Document form a specialized triad that manages the structure and display of web content. The LocalFrame acts as the primary controller fo...

8 Feb 34min

Pixel Snapping in Blink's Paint Property Trees

Pixel Snapping in Blink's Paint Property Trees

Blink’s rendering engine utilizes paint property trees and snap offsets to balance high-precision layout with visual clarity. While the layout engine calculates positions using fractional units for ac...

8 Feb 31min

Chromium Blink: Scroll-Triggered Animations on the Compositor Thread

Chromium Blink: Scroll-Triggered Animations on the Compositor Thread

This document explores the technical implementation of scroll-triggered animations within Chromium's Blink engine and compositor. Unlike traditional scroll-driven effects that track movement continuou...

6 Feb 31min

Blink and Chromium: The JavaScript Execution Pipeline

Blink and Chromium: The JavaScript Execution Pipeline

This documentation provides a technical deep dive into Blink’s JavaScript execution pipeline, explaining how Chromium orchestrates the transition from HTML parsing to code evaluation. It details the r...

6 Feb 31min

Evolution of CSS clip-path in Web Standards and Blink

Evolution of CSS clip-path in Web Standards and Blink

The provided text outlines the evolution and technical implementation of the CSS clip-path property, which allows developers to create non-rectangular regions for web content. It details how the stand...

6 Feb 36min

Mastering Chained CLs in the Chromium Workflow

Mastering Chained CLs in the Chromium Workflow

In Chromium development, chained change lists (CLs) allow engineers to decompose massive features into a stack of smaller, dependent commits for easier code review. This workflow utilizes depot_tools,...

6 Feb 38min

Populært innen Teknologi

romkapsel
tomprat-med-gunnar-tjomlid
rss-avskiltet
teknisk-sett
nasjonal-sikkerhetsmyndighet-nsm
energi-og-klima
shifter
lydartikler-fra-aftenposten
elektropodden
rss-impressions-2
fornybaren
hans-petter-og-co
rss-alt-vi-kan
rss-ki-praten
pedagogisk-intelligens
smart-forklart
rss-fish-ships
rss-trippel-bunnlinje
rss-alt-som-gar-pa-strom
rss-ai-forklart