Frames captured by the composition recorder on non-ANGLE configurations were
previously written upside down to disk. We now flip them right side up when
mapping them into memory.
Details
Details
- Reviewers
kvark - Commits
- rMOZILLACENTRALdccb73a9ee2b: Bug 1570442 - Flip upside down recorded frames right side up on non-ANGLE…
- Bugzilla Bug ID
- 1570442
Diff Detail
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
| gfx/wr/webrender/src/screen_capture.rs | ||
|---|---|---|
| 361 | What makes macos different here? Do we have similar code in, say, Wrench (that needs to do readback for reftests) that is macOS specific? | |
Comment Actions
So it only needs to be flipped for Angle on Windows?
Instead of trying to re-order the rows here, can we just provide a flag (or just figure this out automatically) in Renderer::scale_screenshot? It currently flips the content for level == 0.
Comment Actions
Renderer::scale_screenshot is only called in the ProfilerScreenshots case where this does not occur.
Comment Actions
Just one small change. The last one, I promise! :)
| gfx/wr/webrender/src/screen_capture.rs | ||
|---|---|---|
| 369 | can we have let is_angle = ...;" statement before this if`? | |