Incorrect CARenderer rendering
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
Details
Attachments
(3 files)
There are three small problems in the implementation of NativeLayerRootSnapshotterCA::ReadbackPixels from bug 1592026. This can result in wrong reftest snapshots, and after bug 1592031 in incorrect profiler screenshots.
| Assignee | ||
Comment 1•6 years ago
|
||
The CARenderer documentation does not provide any guidance on how to use CARenderer with different resolutions.
In the initial implementation I simply tried the following: Make a device-pixel sized framebuffer, call glViewport with the device pixel size, and then call glOrtho with the "point" size. And this seemed to work.
However, it doesn't always work. When hooking up profiler screenshots, I noticed that in some cases, some layers would just not be rendered. Sometimes I even saw layers show up in wrong places.
After this patch, these problems no longer appear.
Depends on D58518
| Assignee | ||
Comment 2•6 years ago
|
||
addUpdateRect needs to be called after beginFrame, otherwise it doesn't do anything.
Depends on D59154
| Assignee | ||
Comment 3•6 years ago
|
||
I consider this to be a bug in CARenderer. According to https://stackoverflow.com/questions/56150363/rendering-animated-calayer-off-screen-using-carenderer-with-mtltexture the Metal implementation has the same bug.
Depends on D59155
Comment 5•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6f0faedf53bd
https://hg.mozilla.org/mozilla-central/rev/53c427440d0e
https://hg.mozilla.org/mozilla-central/rev/bcb85259be95
Description
•