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

Chromium Compositor Tile Raster Transform Path Map

Chromium Compositor Tile Raster Transform Path Map

The source provides an exhaustive technical mapping of how the Tile::raster_transform_ field is initialized and maintained within the Chromium compositor. It explains that this transform, which consis...

31 Okt 202527min

(ALT) Chromium Compositor PictureLayerImpl Deep Dive

(ALT) Chromium Compositor PictureLayerImpl Deep Dive

The source provides an extensive technical overview of the cc::PictureLayerImpl class, a critical component in the rendering architecture of Chromium's compositor, responsible for processing content o...

31 Okt 202540min

Chromium Compositor PictureLayerImpl Deep Dive

Chromium Compositor PictureLayerImpl Deep Dive

The source provides an extensive technical overview of the cc::PictureLayerImpl class, a critical component in the rendering architecture of Chromium's compositor, responsible for processing content o...

31 Okt 202536min

Chromium Compositor Picture Layer Deep Dive

Chromium Compositor Picture Layer Deep Dive

This source provides an extensive, practitioner-focused examination of the Chromium Compositor's PictureLayerImpl class and its associated tiling stack, which manages the rasterization and drawing of ...

31 Okt 202536min

Singing and Memory in Ancient Greek Oral Tradition

Singing and Memory in Ancient Greek Oral Tradition

The source materials offer an extensive analysis of how ancient Greek civilization used music and rhythm as fundamental mnemonic tools for preserving and transmitting cultural knowledge long before wi...

30 Okt 20251h 24min

Chrome Property Trees: Blink vs. Compositor Comparison

Chrome Property Trees: Blink vs. Compositor Comparison

The source provides an extensive technical comparison of the Paint Property Trees (PPTs) used in Chrome's Blink rendering engine and the corresponding Compositor Property Trees (CC) utilized by the co...

30 Okt 202553min

Chrome Blink and CC Finch Experiment Guide

Chrome Blink and CC Finch Experiment Guide

The source material is a comprehensive guide detailing the process for Google Chrome engineers to launch an A/B field trial (experiment) for changes made to the rendering engine (Blink) or the composi...

29 Okt 202544min

Chrome's CSS Scroll Snap Implementation: Blink and Compositor Deep Dive

Chrome's CSS Scroll Snap Implementation: Blink and Compositor Deep Dive

The source provides an extensive technical explanation of the implementation of CSS Scroll Snap within the Google Chrome browser, specifically detailing how the feature is managed across the Blink ren...

29 Okt 202541min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
tomprat-med-gunnar-tjomlid
rss-avskiltet
nasjonal-sikkerhetsmyndighet-nsm
smart-forklart
teknisk-sett
energi-og-klima
shifter
rss-impressions-2
elektropodden
rss-alt-vi-kan
teknologi-og-mennesker
pedagogisk-intelligens
hans-petter-og-co
rss-ki-praten
kunstig-intelligens-med-morten-goodwin
rss-fjorsilkebris-podcast
rss-bouvet-bobler
rss-alt-som-gar-pa-strom