Skip to content

feat(thumbnail): add freeze/resume support and prevent updates while frozen#1

Open
mathew-dennis wants to merge 1 commit intocutie-shell:cutiefrom
mathew-dennis:allow-freeze
Open

feat(thumbnail): add freeze/resume support and prevent updates while frozen#1
mathew-dennis wants to merge 1 commit intocutie-shell:cutiefrom
mathew-dennis:allow-freeze

Conversation

@mathew-dennis
Copy link

  • Added m_frozen flag to stop thumbnail updates when frozen
  • Implemented freeze() and resume() methods with debug logging

currently the thumbnail preview for all active apps runs all the time this is very cpu intensive and really slows down phones with mid range cpu (redmi note 7 pro) so this commit adds a way for this to be frozen when the preview is not seen by the user

…frozen

- Added m_frozen flag to stop thumbnail updates when frozen
- Implemented freeze() and resume() methods with debug logging
- Updated onThumbnailDamage() to skip frame capture when frozen
- Prevents unnecessary screencopy requests during suspended state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant