New issue
Advanced search Search tips

Issue 859613 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

Make image decode tasks cancellable

Project Member Reported by vmp...@chromium.org, Jul 2

Issue description

We should make image decode tasks cancellable:

- If we're processing an image decode, and we get a new schedule without that image decode, we can cancel the task
- We can plumb a bool/callback to the task to see if it was canceled
- The actual class doing the work can check this bool
- It can react by aborting future work, and ensure that if the task runs again things just work (tm)

This should allow us to cancel long running image decode tasks on a fast fling through image heavy sites. 
 
Status: Available (was: Assigned)
Other than adding a yield point to the image decoder, where it checks whether the decode should be continued, we should ideally also be able to save the partially decoded frame and resume it if the decode is re-scheduled instead of throwing away the work that was done.

Also, I'm still not sure whether the gain here is worth the additional complexity of making all this work. Marking this available in case someone else wants to investigate this.
Owner: ----

Sign in to add a comment