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

C++ Mechanics of Blink View Transitions

C++ Mechanics of Blink View Transitions

26 Mars 47min

Input Vizard

Input Vizard

Input in Viz for Chromium.

26 Mars 43min

Late-Bound Raster Color Parameters in Chromium

Late-Bound Raster Color Parameters in Chromium

These sources describe a new optimization for the Chromium rendering engine that allows certain colors to be updated without triggering a full repaint of the display list. By treating colors as late-b...

26 Mars 39min

Architecting Composited Color Interpolation in Blink Chromium

Architecting Composited Color Interpolation in Blink Chromium

These sources detail the technical challenges and architectural strategies for implementing hardware-accelerated color animations within the Chromium rendering engine. High-performance rendering requi...

25 Mars 52min

Architecture and Implementation of Chromium Fenced Frames

Architecture and Implementation of Chromium Fenced Frames

These sources describe the architectural and technical implementation of fenced frames within the Chromium and Blink engines. Unlike standard iframes, fenced frames function as privacy-isolated embedd...

24 Mars 52min

Deep Dive into currentcolor in CSS and Blink

Deep Dive into currentcolor in CSS and Blink

These sources provide a comprehensive technical analysis of the currentcolor keyword in CSS and its specific implementation within the Blink rendering engine. Rather than acting as a simple static ali...

23 Mars 40min

Late-Bound Paint: The Evolution of Chromium Composited Color

Late-Bound Paint: The Evolution of Chromium Composited Color

The provided text outlines a strategic architectural proposal for Chromium to transition from a property-specific "composited color" model to a generalized late-bound paint-parameter substrate. Curren...

22 Mars 46min

The Musk Operating System: Strategic Thinking and Iterative Models

The Musk Operating System: Strategic Thinking and Iterative Models

These sources outline a comprehensive framework for strategic thinking by analyzing the operational methods of companies like SpaceX, Tesla, and Neuralink. The text identifies a recurring "operating s...

22 Mars 44min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
bilar-med-sladd
market-makers
har-vi-akt-till-mars-an
rss-elektrikerpodden
skogsforum-podcast
rss-laddstationen-med-elbilen-i-sverige
rss-technokratin
rss-uppgang-och-fall
rss-veckans-ai
natets-morka-sida
bli-saker-podden
hej-bruksbil
rss-it-sakerhetspodden
rss-en-ai-till-kaffet
rss-milpodden
developers-mer-an-bara-kod
rss-snacka-om-ai
rss-ai-med-katarina-gospic-och-viggo-cavling