blink::GraphicsContext
Blink28610 Okt 2025

blink::GraphicsContext

immediate drawing API that records to a display list.

Painters for layout objects use GraphicsContext to “draw”—but in modern Blink those calls get recorded into a display list (PaintRecord) backed by Skia commands. This recording is scoped and batched between BeginRecording(...)/EndRecording(). (Chromium Git Repositories)

Key methods (how display items get their pixels)

  • Recording: BeginRecording(const FloatRect&) → sk_sp<PaintRecord> EndRecording() — wraps a run of drawing commands for later replay. (Chromium Git Repositories)

  • Draw ops (representative): DrawRect, DrawImage(...), DrawText(...), BeginLayer/EndLayer — the stuff that becomes Skia ops inside display items. (Chromium Git Repositories)

Important fields

  • cc::PaintCanvas* canvas_ (owned by recorder), PaintRecorder paint_recorder_ — actual recording guts;

  • float device_scale_factor_, state stacks/flags — needed for correct pixel snapping/appearance. (Chromium Git Repositories)

Hands off to: PaintController, which packages these recorded ops into chunks/items.


Episoder(417)

[EXP] Blink Paint Artifact Compositor: Advanced Architectural Internals

[EXP] Blink Paint Artifact Compositor: Advanced Architectural Internals

The provided text explains the PaintArtifactCompositor (PAC), a critical bridge in the Chromium engine that converts Blink's paint data into a format the compositor can process. It describes how the s...

24 Feb 26min

Blink Paint Artifact Compositor: Advanced Architectural Internals

Blink Paint Artifact Compositor: Advanced Architectural Internals

The provided text explains the PaintArtifactCompositor (PAC), a critical bridge in the Chromium engine that converts Blink's paint data into a format the compositor can process. It describes how the s...

24 Feb 44min

Promise Textures and GPU Resolution in Chromium's Viz Compositor

Promise Textures and GPU Resolution in Chromium's Viz Compositor

This text explains the promise texture system within Chromium’s Viz compositor, an architectural framework that allows the browser to handle complex GPU drawing operations across different threads. By...

24 Feb 27min

CSS Containment: Spec Implementation and Blink Engine Architecture

CSS Containment: Spec Implementation and Blink Engine Architecture

These sources provide a technical deep dive into CSS containment, explaining how it functions both as a web standard and within the Blink rendering engine. By treating specific subtrees as independent...

24 Feb 37min

Blink's Scroll Architecture: From Layout Geometry to Property Trees

Blink's Scroll Architecture: From Layout Geometry to Property Trees

The provided text explains the Blink rendering engine's architectural approach to managing web page scrolling through three distinct tree structures. By separating mutable layout objects from immutabl...

24 Feb 30min

Refining Pixel Snapping for Split-Axis Sticky Compositing

Refining Pixel Snapping for Split-Axis Sticky Compositing

These sources detail a technical implementation for pixel snapping in a web browser's compositor, specifically addressing how sticky positioning handles subpixel offsets across split axes. The primary...

24 Feb 34min

InputHandlerProxy in Blink and cc: A Technical Report

InputHandlerProxy in Blink and cc: A Technical Report

The provided technical report details the architecture and function of the InputHandlerProxy within the Chromium renderer as of early 2026. This component operates on the compositor thread to manage u...

24 Feb 31min

Unix and Linux tee Utility

Unix and Linux tee Utility

The provided text is a technical report on the Unix and Linux tee utility, a command used to duplicate data streams by reading from standard input and writing to both standard output and files. While ...

24 Feb 35min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
rss-avskiltet
energi-og-klima
nasjonal-sikkerhetsmyndighet-nsm
teknisk-sett
teknologi-og-mennesker
elektropodden
rss-impressions-2
shifter
smart-forklart
tomprat-med-gunnar-tjomlid
pedagogisk-intelligens
fornybaren
rss-ai-forklart
i-loopen
rss-for-alarmen-gar
rss-praktisk-proptech
rss-ki-praten
rss-anleggspraten