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

Blink and Havok: Engineering Parallels in Web and Physics Engines

Blink and Havok: Engineering Parallels in Web and Physics Engines

This text examines the technical similarities between Chromium’s Blink engine and high-performance physics engines like Havok. Although they serve different purposes, both rely on iterative update loo...

20 Jan 29min

CSS Float Layout and Blink's LayoutNG Implementation

CSS Float Layout and Blink's LayoutNG Implementation

The provided text explains the technical specifications and implementation of CSS float layouts, specifically focusing on the Blink engine's LayoutNG in Chrome. It details how floats are positioned ou...

20 Jan 26min

CSS Positioned Layout Module Level 3

CSS Positioned Layout Module Level 3

The CSS Positioned Layout Module Level 3 is a comprehensive update that modernizes how elements are placed and layered on web pages. It preserves the core behaviors of CSS2.1 while introducing sticky ...

20 Jan 14min

CSS Overflow Module Level 4

CSS Overflow Module Level 4

The provided documents detail the CSS Overflow Module Level 4, a specification that enhances how web browsers handle content exceeding an element's boundaries. It introduces sophisticated controls lik...

19 Jan 36min

CSS Overflow Module Level 3

CSS Overflow Module Level 3

CSS Overflow Module Level 3 introduces more precise ways to manage content that exceeds an element's boundaries, building upon previous standards with new properties and values. A primary addition is ...

19 Jan 35min

Managing Dotfiles on Debian with GNU Stow

Managing Dotfiles on Debian with GNU Stow

GNU Stow is a specialized command-line utility that functions as a symlink farm manager, primarily used to organize and deploy dotfiles across Linux systems like Debian. By centralizing configuration ...

19 Jan 31min

Mastering CSS Containing Blocks and Blink Engine Implementation

Mastering CSS Containing Blocks and Blink Engine Implementation

The provided text explains the fundamental role of containing blocks in CSS, which act as the primary reference for calculating an element's size and placement. These rectangular boundaries are determ...

19 Jan 32min

Blink’s Core Overflow Geometry: Clipping, Visual, and Scrollable Rectangles

Blink’s Core Overflow Geometry: Clipping, Visual, and Scrollable Rectangles

The provided text explains Blink’s core overflow geometry system, which uses three specialized rectangles to manage how web content extends beyond its defined boundaries. The OverflowClipRect acts as ...

18 Jan 30min

Populärt inom Teknik

uppgang-och-fall
market-makers
elbilsveckan
natets-morka-sida
rss-elektrikerpodden
gubbar-som-tjotar-om-bilar
skogsforum-podcast
rss-laddstationen-med-elbilen-i-sverige
bilar-med-sladd
rss-technokratin
rss-uppgang-och-fall
bli-saker-podden
rss-it-sakerhetspodden
developers-mer-an-bara-kod
bosse-bildoktorn-och-hasse-p
rss-sakerhetspodcasten
rss-kack-tech-podcast
rss-en-ai-till-kaffet
rss-sogeti-sweden-podcasts
rss-milpodden