mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Reorder the cases of image_cache_task::Msg so that the priv ones are adjacent.
This commit is contained in:
parent
2ec4486379
commit
dbf260ac1f
1 changed files with 7 additions and 7 deletions
|
@ -22,16 +22,9 @@ pub enum Msg {
|
||||||
/// before Decode
|
/// before Decode
|
||||||
Prefetch(Url),
|
Prefetch(Url),
|
||||||
|
|
||||||
// FIXME: We can probably get rid of this Cell now
|
|
||||||
/// Used be the prefetch tasks to post back image binaries
|
|
||||||
priv StorePrefetchedImageData(Url, Result<~[u8], ()>),
|
|
||||||
|
|
||||||
/// Tell the cache to decode an image. Must be posted before GetImage/WaitForImage
|
/// Tell the cache to decode an image. Must be posted before GetImage/WaitForImage
|
||||||
Decode(Url),
|
Decode(Url),
|
||||||
|
|
||||||
/// Used by the decoder tasks to post decoded images back to the cache
|
|
||||||
priv StoreImage(Url, Option<Arc<~Image>>),
|
|
||||||
|
|
||||||
/// Request an Image object for a URL. If the image is not is not immediately
|
/// Request an Image object for a URL. If the image is not is not immediately
|
||||||
/// available then ImageNotReady is returned.
|
/// available then ImageNotReady is returned.
|
||||||
GetImage(Url, Sender<ImageResponseMsg>),
|
GetImage(Url, Sender<ImageResponseMsg>),
|
||||||
|
@ -42,6 +35,13 @@ pub enum Msg {
|
||||||
/// Clients must wait for a response before shutting down the ResourceTask
|
/// Clients must wait for a response before shutting down the ResourceTask
|
||||||
Exit(Sender<()>),
|
Exit(Sender<()>),
|
||||||
|
|
||||||
|
// FIXME: We can probably get rid of this Cell now
|
||||||
|
/// Used be the prefetch tasks to post back image binaries
|
||||||
|
priv StorePrefetchedImageData(Url, Result<~[u8], ()>),
|
||||||
|
|
||||||
|
/// Used by the decoder tasks to post decoded images back to the cache
|
||||||
|
priv StoreImage(Url, Option<Arc<~Image>>),
|
||||||
|
|
||||||
/// For testing
|
/// For testing
|
||||||
priv WaitForStore(Sender<()>),
|
priv WaitForStore(Sender<()>),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue