@@ -6,7 +6,7 @@ use device::{MAX_TEXTURE_SIZE, TextureFilter};
6
6
use euclid:: { Point2D , Rect , Size2D } ;
7
7
use fnv:: FnvHasher ;
8
8
use freelist:: { FreeList , FreeListItem , FreeListItemId } ;
9
- use internal_types:: { TextureUpdate , TextureUpdateOp , TextureUpdateDetails } ;
9
+ use internal_types:: { TextureUpdate , TextureUpdateOp } ;
10
10
use internal_types:: { CacheTextureId , RenderTargetMode , TextureUpdateList } ;
11
11
use internal_types:: { RectUv , DevicePixel , DevicePoint } ;
12
12
use std:: cmp:: { self , Ordering } ;
@@ -597,7 +597,7 @@ impl TextureCache {
597
597
allocated_rect : Rect :: zero ( ) ,
598
598
requested_rect : Rect :: zero ( ) ,
599
599
texture_size : Size2D :: zero ( ) ,
600
- texture_id : CacheTextureId :: invalid ( ) ,
600
+ texture_id : CacheTextureId ( 0 ) ,
601
601
} ;
602
602
self . items . insert ( new_item)
603
603
}
@@ -740,7 +740,8 @@ impl TextureCache {
740
740
existing_item. requested_rect . origin . y ,
741
741
width,
742
742
height,
743
- TextureUpdateDetails :: Blit ( bytes, stride) ) ;
743
+ bytes,
744
+ stride) ;
744
745
745
746
let update_op = TextureUpdate {
746
747
id : existing_item. texture_id ,
@@ -797,7 +798,8 @@ impl TextureCache {
797
798
result. item . allocated_rect . origin . y ,
798
799
result. item . allocated_rect . size . width ,
799
800
1 ,
800
- TextureUpdateDetails :: Blit ( top_row_bytes, None ) )
801
+ top_row_bytes,
802
+ None )
801
803
} ;
802
804
803
805
let border_update_op_bottom = TextureUpdate {
@@ -808,7 +810,8 @@ impl TextureCache {
808
810
result. item . requested_rect . size . height + 1 ,
809
811
result. item . allocated_rect . size . width ,
810
812
1 ,
811
- TextureUpdateDetails :: Blit ( bottom_row_bytes, None ) )
813
+ bottom_row_bytes,
814
+ None )
812
815
} ;
813
816
814
817
let border_update_op_left = TextureUpdate {
@@ -818,7 +821,8 @@ impl TextureCache {
818
821
result. item . requested_rect . origin . y ,
819
822
1 ,
820
823
result. item . requested_rect . size . height ,
821
- TextureUpdateDetails :: Blit ( left_column_bytes, None ) )
824
+ left_column_bytes,
825
+ None )
822
826
} ;
823
827
824
828
let border_update_op_right = TextureUpdate {
@@ -827,7 +831,8 @@ impl TextureCache {
827
831
result. item . requested_rect . origin . y ,
828
832
1 ,
829
833
result. item . requested_rect . size . height ,
830
- TextureUpdateDetails :: Blit ( right_column_bytes, None ) )
834
+ right_column_bytes,
835
+ None )
831
836
} ;
832
837
833
838
self . pending_updates . push ( border_update_op_top) ;
@@ -839,7 +844,8 @@ impl TextureCache {
839
844
result. item . requested_rect . origin . y ,
840
845
width,
841
846
height,
842
- TextureUpdateDetails :: Blit ( bytes, stride) )
847
+ bytes,
848
+ stride)
843
849
}
844
850
AllocationKind :: Standalone => {
845
851
TextureUpdateOp :: Create ( width,
0 commit comments