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)

POSIX Shell Scripting and Bash Development on Debian

POSIX Shell Scripting and Bash Development on Debian

This guide provides a thorough technical foundation for POSIX shell scripting on Debian, specifically bridging the gap for developers familiar with C++. It details the execution model, explaining how ...

10 Tammi 53min

Omniscient Debugging: rr and Pernosco

Omniscient Debugging: rr and Pernosco

The provided text explores the rr and Pernosco debugger systems, which revolutionize software troubleshooting through record-and-replay technology. The open-source rr tool captures Linux application e...

8 Tammi 30min

ScrollableArea vs PaintLayerScrollableArea

ScrollableArea vs PaintLayerScrollableArea

The provided text explains the architectural relationship between ScrollableArea and PaintLayerScrollableArea (PLSA) within Blink, the rendering engine for Chromium. ScrollableArea serves as an abstra...

8 Tammi 52min

PaintLayerScrollableArea: Blink’s Scrolling Engine

PaintLayerScrollableArea: Blink’s Scrolling Engine

The PaintLayerScrollableArea (PLSA) is a critical internal component within Google’s Blink rendering engine that manages the scrolling mechanics for individual layout elements. It acts as a specialize...

8 Tammi 31min

Single-Axis Overflow Clipping in the Blink Rendering Engine

Single-Axis Overflow Clipping in the Blink Rendering Engine

Chromium’s Blink engine manages specific CSS overflow behaviors by distinguishing between scrollable containers and clipped elements. While standard combinations like visible and hidden are often reco...

7 Tammi 38min

Electron Architecture and Runtime Integration Strategies

Electron Architecture and Runtime Integration Strategies

Electron is a software framework that combines the Chromium rendering engine with the Node.js runtime to facilitate the creation of cross-platform desktop applications. Its architecture utilizes a mul...

7 Tammi 43min

[DIFFERENCE] Block Formatting Context vs Containing Block: CSS Architecture

[DIFFERENCE] Block Formatting Context vs Containing Block: CSS Architecture

This document explores the fundamental differences and technical interactions between Block Formatting Context (BFC) and Containing Blocks within web design. While a BFC dictates how independent layou...

7 Tammi 36min

POSIX System Programming and Interface Fundamentals

POSIX System Programming and Interface Fundamentals

The provided text is an extensive technical guide to the Portable Operating System Interface (POSIX), a set of standards designed to ensure application portability across various operating systems. It...

7 Tammi 38min