Closed Bug 1541398 Opened 5 years ago Closed 4 years ago

Find a non-gdi alternative for gfxWindowsPlatform::CreateOffscreenSurface

Categories

(Core :: Graphics, task, P5)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: jimm, Assigned: cmartin)

References

Details

Attachments

(1 file)

This is a 1x1 reference surface created in gfxWindowsPlatform. It's used by layout. A try run with a gfxImageSurface shows a few failures that appear related to font measurement.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=54cff79727fef8c7468dfaa78f7267fddd19611f

Priority: -- → P5
Type: defect → task

I'm going to take a look into this bug.

Assignee: nobody → cmartin

For Win32k lockdown, we can't use gfxWindowsSurface in content for offscreen
surfaces, since it invokes Windows GDI calls.

It appears from testing that a gfxImageSurface works just fine, so this change
just disables the native surface usage for content processes.

Pushed by cmartin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/af89c4623c78
Force gfxImageSurface for OffscreenSurface in content r=jfkthame
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: