skip initializing to black CONTENT_COLOR Xlib surfaces from CreateSimilarSurface

NEW
Unassigned

Status

()

Core
Graphics
7 years ago
7 years ago

People

(Reporter: karlt, Unassigned)

Tracking

Other Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
Since bug 651469, Xlib Surfaces no longer depend on XCopyArea semantics to support self copies.

Cairo used XCopyArea only when cairo created the pixmap itself, but cairo always initializes Pixmaps that it creates.
Now that we don't depend on XCopyArea, gfxXlibSurface::CreateSimilarSurface can use gfxXlibSurface::Create which skips the black fill.

(I haven't checked whether Gecko relies on the transparent fill for COLOR_ALPHA surfaces.)
You need to log in before you can comment on or make changes to this bug.