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.


Avsnitt(444)

[ADV] Blink Engine Style Propagation and the kInherited Severity Class

[ADV] Blink Engine Style Propagation and the kInherited Severity Class

This technical overview examines the kInherited classification within Blink’s style system, identifying it as a specific severity level for style changes rather than a simple label for CSS inheritance...

14 Mars 45min

Blink Engine Style Propagation and the kInherited Severity Class

Blink Engine Style Propagation and the kInherited Severity Class

The provided text explains the technical implementation of ComputedStyle::Difference::kInherited within Google’s Blink rendering engine. Rather than simply following CSS specifications, this system se...

14 Mars 38min

LazyJJ: A Terminal UI Guide for Jujutsu Stacked Workflows

LazyJJ: A Terminal UI Guide for Jujutsu Stacked Workflows

LazyJJ is a Rust-based terminal user interface designed specifically to streamline workflows for the Jujutsu (jj) version control system. It functions as a thin wrapper that executes CLI commands in t...

14 Mars 42min

JJ Jiu-Jitsu: A Strategic Deep Dive

JJ Jiu-Jitsu: A Strategic Deep Dive

The provided text offers a comprehensive technical overview of Jujutsu (jj), an experimental yet functional version-control system designed to be compatible with Git while fundamentally reimagining it...

14 Mars 46min

Blink Style Engine Architecture: ComputedStyle and ComputedStyleBase

Blink Style Engine Architecture: ComputedStyle and ComputedStyleBase

The provided text explains the architectural relationship between ComputedStyle and ComputedStyleBase within the Blink rendering engine. ComputedStyleBase serves as a generated storage engine designed...

13 Mars 45min

The Architecture of Blink Layout and Fragment Tree Roots

The Architecture of Blink Layout and Fragment Tree Roots

These sources describe the structural and functional relationship between the layout tree and the fragment tree within Chromium's Blink engine. At the heart of this system is the LayoutView, which ser...

13 Mars 55min

Chromium Fragment Items: Storage, Lifecycle, and Memory Architecture

Chromium Fragment Items: Storage, Lifecycle, and Memory Architecture

These sources explain the technical implementation and storage of Fragment Items within Google’s Blink rendering engine. They clarify that while line boxes exist as nodes in the fragment tree, the act...

12 Mars 48min

[ADV] Blink Layout Engine: Float Avoidance and Exclusion Space Mechanics

[ADV] Blink Layout Engine: Float Avoidance and Exclusion Space Mechanics

The provided documents describe how the Chromium layout engine, specifically the Blink renderer, prevents content from overlapping CSS floats using the LayoutNG framework. This process relies on an Ex...

11 Mars 42min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
market-makers
bilar-med-sladd
rss-elektrikerpodden
natets-morka-sida
rss-laddstationen-med-elbilen-i-sverige
skogsforum-podcast
rss-technokratin
rss-veckans-ai
rss-uppgang-och-fall
har-vi-akt-till-mars-an
developers-mer-an-bara-kod
bli-saker-podden
teknikveckan
ai-sweden-podcast
rss-it-sakerhetspodden
rss-digitala-influencer-podden
rss-powerboat-sverige-podcast
rss-snacka-om-ai