Closed Bug 2018097 Opened 8 months ago Closed 8 months ago

Implement RenderCompositorLayerNative::GetWindowProperties()

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

GetWindowProperties() is not yet implemented in RenderCompositorLayerNative. Without implementing GetWindowProperties(), WebRender layer manager always use only one content layer by WindowProperties::default().

On Wayland, RenderCompositorLayerNative needs to force only one content layer during taking screenshot. There is gdk_paintable_snapshot() for getting screenshot. But it needs to be called in main thread. Then it could not be used for taking screenshot of WebRender layer compositor.

Assignee: nobody → sotaro.ikeda.g
Depends on: 2016332
Depends on: 2017791
Attachment #9546706 - Attachment description: WIP: Bug 2018097 - Implement RenderCompositorLayerNative::GetWindowProperties() → Bug 2018097 - Implement RenderCompositorLayerNative::GetWindowProperties()
Pushed by sikeda.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cce955e3fd29 https://hg.mozilla.org/integration/autoland/rev/d799bb572b19 Implement RenderCompositorLayerNative::GetWindowProperties() r=gfx-reviewers,bradwerth
Blocks: 2016332
No longer depends on: 2016332
Blocks: 2018860
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

I don't quite understand what do you mean here but note that gdk_paintable_snapshot() is Gtk4 function and Firefox runs Gtk3.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #4)

I don't quite understand what do you mean here but note that gdk_paintable_snapshot() is Gtk4 function and Firefox runs Gtk3.

I just found the api from chromium's implementation. Anyway gtk api is not tried to be used for taking screenshot.

QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: