Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • wlroots wlroots
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 334
    • Issues 334
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 135
    • Merge requests 135
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wlrootswlroots
  • wlrootswlroots
  • Merge requests
  • !3785

swapchain: Refactor to store age implicitly in list

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Alexander Orzechowski requested to merge Nefsen402/wlroots:swapchain into master Oct 16, 2022
  • Overview 4
  • Commits 3
  • Pipelines 2
  • Changes 2
swapchain: Refactor to store age implicitly in list

Instead of storing the age in each slot with no defined order, instead
put previously used buffer slots in a wl_list where the youngest buffers
are at the head.

This guarantees that the swapchain will return younger buffers if it can.

This does the same thing that !3686 (closed) does but in a much simpler way.

Edited Oct 16, 2022 by Alexander Orzechowski
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: swapchain