blink::GraphicsContext
Blink28610 Loka 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.


Jaksot(392)

blink::StyleEngine / style resolver

blink::StyleEngine / style resolver

Recalculates computed styles that changed since last frame (if any).

21 Syys 202542min

blink::Page → blink::LocalFrame / LocalFrameView

blink::Page → blink::LocalFrame / LocalFrameView

The document’s frame & viewport; LocalFrameView is the scrollable root that triggers layout/paint when needed. provided source outlines the fundamental components of the Blink rendering engine, specif...

21 Syys 202539min

blink::WebViewImpl

blink::WebViewImpl

The source text provides an in-depth explanation of the blink::WebViewImpl class within Chromium's Blink rendering engine, characterizing it as the central control point on the renderer's main thread ...

20 Syys 202539min

cc::LayerTreeHost in Chromium's Compositor

cc::LayerTreeHost in Chromium's Compositor

The source provides an extensive technical explanation of the cc::LayerTreeHost class, which acts as the central main-thread component in the Chromium compositor architecture. It details how this comp...

20 Syys 202537min

cc:: Scheduler / SchedulerStateMachine

cc:: Scheduler / SchedulerStateMachine

Drives the frame loop on the compositor thread (BeginFrame → Animate → Commit → Draw), deciding when to ask Blink for a new frame or to draw with existing state.

20 Syys 202548min

Chrome Interactions Team: Key Class Reference

Chrome Interactions Team: Key Class Reference

The sources provide an extensive reference guide detailing the key classes and infrastructure involved in handling user interactions—specifically scrolling, gestures, and input—within the Blink and Ch...

20 Syys 202553min

Essential Unix, Git, and Development Commands

Essential Unix, Git, and Development Commands

This comprehensive reference document provides an essential overview of commands used in a Unix-like environment, primarily focusing on Linux/macOS command-line operations and the specialized workflow...

20 Syys 202541min

Chromium and Blink Developer Command Reference

Chromium and Blink Developer Command Reference

The collection of sources provides a comprehensive guide to developing within the Chromium project, focusing heavily on command-line tools and workflows essential for engineers, particularly those wor...

19 Syys 202543min