@@ -6,7 +6,7 @@ use device::{MAX_TEXTURE_SIZE, TextureFilter};
66use euclid:: { Point2D , Rect , Size2D } ;
77use fnv:: FnvHasher ;
88use freelist:: { FreeList , FreeListItem , FreeListItemId } ;
9- use internal_types:: { TextureUpdate , TextureUpdateOp , TextureUpdateDetails } ;
9+ use internal_types:: { TextureUpdate , TextureUpdateOp } ;
1010use internal_types:: { CacheTextureId , RenderTargetMode , TextureUpdateList } ;
1111use internal_types:: { RectUv , DevicePixel , DevicePoint } ;
1212use std:: cmp:: { self , Ordering } ;
@@ -597,7 +597,7 @@ impl TextureCache {
597597 allocated_rect : Rect :: zero ( ) ,
598598 requested_rect : Rect :: zero ( ) ,
599599 texture_size : Size2D :: zero ( ) ,
600- texture_id : CacheTextureId :: invalid ( ) ,
600+ texture_id : CacheTextureId ( 0 ) ,
601601 } ;
602602 self . items . insert ( new_item)
603603 }
@@ -740,7 +740,8 @@ impl TextureCache {
740740 existing_item. requested_rect . origin . y ,
741741 width,
742742 height,
743- TextureUpdateDetails :: Blit ( bytes, stride) ) ;
743+ bytes,
744+ stride) ;
744745
745746 let update_op = TextureUpdate {
746747 id : existing_item. texture_id ,
@@ -797,7 +798,8 @@ impl TextureCache {
797798 result. item . allocated_rect . origin . y ,
798799 result. item . allocated_rect . size . width ,
799800 1 ,
800- TextureUpdateDetails :: Blit ( top_row_bytes, None ) )
801+ top_row_bytes,
802+ None )
801803 } ;
802804
803805 let border_update_op_bottom = TextureUpdate {
@@ -808,7 +810,8 @@ impl TextureCache {
808810 result. item . requested_rect . size . height + 1 ,
809811 result. item . allocated_rect . size . width ,
810812 1 ,
811- TextureUpdateDetails :: Blit ( bottom_row_bytes, None ) )
813+ bottom_row_bytes,
814+ None )
812815 } ;
813816
814817 let border_update_op_left = TextureUpdate {
@@ -818,7 +821,8 @@ impl TextureCache {
818821 result. item . requested_rect . origin . y ,
819822 1 ,
820823 result. item . requested_rect . size . height ,
821- TextureUpdateDetails :: Blit ( left_column_bytes, None ) )
824+ left_column_bytes,
825+ None )
822826 } ;
823827
824828 let border_update_op_right = TextureUpdate {
@@ -827,7 +831,8 @@ impl TextureCache {
827831 result. item . requested_rect . origin . y ,
828832 1 ,
829833 result. item . requested_rect . size . height ,
830- TextureUpdateDetails :: Blit ( right_column_bytes, None ) )
834+ right_column_bytes,
835+ None )
831836 } ;
832837
833838 self . pending_updates . push ( border_update_op_top) ;
@@ -839,7 +844,8 @@ impl TextureCache {
839844 result. item . requested_rect . origin . y ,
840845 width,
841846 height,
842- TextureUpdateDetails :: Blit ( bytes, stride) )
847+ bytes,
848+ stride)
843849 }
844850 AllocationKind :: Standalone => {
845851 TextureUpdateOp :: Create ( width,
0 commit comments