mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make some cases of image_cache_task::Msg priv.
This commit is contained in:
parent
3ccc81b9dc
commit
2ec4486379
1 changed files with 4 additions and 8 deletions
|
@ -23,16 +23,14 @@ pub enum Msg {
|
||||||
Prefetch(Url),
|
Prefetch(Url),
|
||||||
|
|
||||||
// FIXME: We can probably get rid of this Cell now
|
// FIXME: We can probably get rid of this Cell now
|
||||||
// FIXME: make this priv after visibility rules change
|
|
||||||
/// Used be the prefetch tasks to post back image binaries
|
/// Used be the prefetch tasks to post back image binaries
|
||||||
StorePrefetchedImageData(Url, Result<~[u8], ()>),
|
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
|
/// Used by the decoder tasks to post decoded images back to the cache
|
||||||
// FIXME: make this priv after visibility rules change
|
priv StoreImage(Url, Option<Arc<~Image>>),
|
||||||
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.
|
||||||
|
@ -45,12 +43,10 @@ pub enum Msg {
|
||||||
Exit(Sender<()>),
|
Exit(Sender<()>),
|
||||||
|
|
||||||
/// For testing
|
/// For testing
|
||||||
// FIXME: make this priv after visibility rules change
|
priv WaitForStore(Sender<()>),
|
||||||
WaitForStore(Sender<()>),
|
|
||||||
|
|
||||||
/// For testing
|
/// For testing
|
||||||
// FIXME: make this priv after visibility rules change
|
priv WaitForStorePrefetched(Sender<()>),
|
||||||
WaitForStorePrefetched(Sender<()>),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deriving(Clone)]
|
#[deriving(Clone)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue