@@ -1082,7 +1082,8 @@ impl ResourceCache {
10821082 Entry :: Vacant ( e) => e,
10831083 } ;
10841084
1085- //TODO: option to save as PNG
1085+ //TODO: option to save as PNG:
1086+ // https://github.com/servo/webrender/issues/2234
10861087 let file_name = format ! ( "{}.raw" , image_id) ;
10871088 let short_path = format ! ( "images/{}" , file_name) ;
10881089 fs:: File :: create ( path_images. join ( file_name) )
@@ -1095,7 +1096,9 @@ impl ResourceCache {
10951096 assert_eq ! ( template. tiling, None ) ;
10961097 let request = BlobImageRequest {
10971098 key,
1098- tile : None , //TODO: tiled blob images
1099+ //TODO: support tiled blob images
1100+ // https://github.com/servo/webrender/issues/2236
1101+ tile : None ,
10991102 } ;
11001103
11011104 let renderer = self . blob_image_renderer . as_mut ( ) . unwrap ( ) ;
@@ -1245,7 +1248,9 @@ impl ResourceCache {
12451248 use std:: io:: Read ;
12461249
12471250 info ! ( "loading resource cache" ) ;
1248- //TODO: pre-load the raw map
1251+ //TODO: instead of filling the local path to Arc<data> map as we process
1252+ // each of the resource types, we could go through all of the local paths
1253+ // and fill out the map as the first step.
12491254 let mut raw_map = FastHashMap :: < String , Arc < Vec < u8 > > > :: default ( ) ;
12501255
12511256 match caches {
@@ -1349,7 +1354,6 @@ impl ResourceCache {
13491354 e. get ( ) . clone ( )
13501355 }
13511356 Entry :: Vacant ( e) => {
1352- //TODO: consider merging the code path with font loading
13531357 let mut buffer = Vec :: new ( ) ;
13541358 File :: open ( root. join ( e. key ( ) ) )
13551359 . expect ( & format ! ( "Unable to open {}" , e. key( ) ) )
0 commit comments