Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
weston
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 273
    • Issues 273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 114
    • Merge Requests 114
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • wayland
  • weston
  • Merge Requests
  • !356

Open
Opened Jan 20, 2020 by K J Rajendraprasad@rajendraprasadkjContributor
  • Report abuse
Report abuse

RFC: Screenshot to DMA fd

  • Overview 23
  • Commits 6
  • Pipelines 2
  • Changes 12

The existing screenshot implementation makes use of glReadPixels and dumps the contents to a file.

This method seems to be less performant and cannot be used for the following:

  1. 60 fps use case: As glReadPixels is not H/W accelerated, the current implementation takes more than 16.6 ms to generate a screenshot.

  2. 3D animations between applications: It is not currently possible to reuse the screenshot of application surfaces in a performant way as the contents are now dumped to a file.

    e.g. window manager should be able to take the screenshot of all application surfaces and create a 3D animation which shows the tiled(stacked) view of all running applications.

One way to address the above use cases is to copy the screenshot content to a DMA buffer. The window manager should allocate a DMA buffer and sent it to the compositor. The compositor then copies the surface/output content to the DMA buffer and returns it.

I have provided a sample implementation and test based on ivi-shell.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: wayland/weston!356
Source branch: improve_screenshot