Skip to content

Commit eaad89e

Browse files
committed
Remove some unused structs.
1 parent 2a41ef5 commit eaad89e

File tree

2 files changed

+4
-47
lines changed

2 files changed

+4
-47
lines changed

webrender/src/internal_types.rs

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,6 @@ impl PackedColor {
218218
}
219219
}
220220

221-
#[derive(Debug, Clone, Copy)]
222-
pub struct WorkVertex {
223-
pub x: f32,
224-
pub y: f32,
225-
pub r: f32,
226-
pub g: f32,
227-
pub b: f32,
228-
pub a: f32,
229-
pub u: f32,
230-
pub v: f32,
231-
}
232-
233221
#[derive(Debug, Clone, Copy)]
234222
#[repr(C)]
235223
pub struct PackedVertexForQuad {
@@ -269,15 +257,6 @@ pub struct PackedVertex {
269257
pub pos: [f32; 2],
270258
}
271259

272-
#[derive(Debug, Clone, Copy)]
273-
#[repr(C)]
274-
pub struct FontVertex {
275-
pub x: f32,
276-
pub y: f32,
277-
pub s: f32,
278-
pub t: f32,
279-
}
280-
281260
#[derive(Debug)]
282261
pub struct DebugFontVertex {
283262
pub x: f32,
@@ -436,23 +415,6 @@ impl FreeListItem for DrawList {
436415
}
437416
}
438417

439-
#[derive(Clone, Copy, Debug, Ord, PartialOrd, PartialEq, Eq)]
440-
pub struct DrawListItemIndex(pub u32);
441-
442-
#[derive(Clone, Copy, Debug)]
443-
pub struct RectPolygon<Varyings> {
444-
pub pos: Rect<f32>,
445-
pub varyings: Varyings,
446-
}
447-
448-
#[derive(Clone, Copy, Debug)]
449-
pub struct RectColors {
450-
pub top_left: ColorF,
451-
pub top_right: ColorF,
452-
pub bottom_right: ColorF,
453-
pub bottom_left: ColorF,
454-
}
455-
456418
#[derive(Clone, Copy, Debug)]
457419
pub struct RectUv<T, U = UnknownUnit> {
458420
pub top_left: TypedPoint2D<T, U>,
@@ -461,11 +423,6 @@ pub struct RectUv<T, U = UnknownUnit> {
461423
pub bottom_right: TypedPoint2D<T, U>,
462424
}
463425

464-
#[derive(Clone, Debug)]
465-
pub struct PolygonPosColorUv {
466-
pub vertices: Vec<WorkVertex>,
467-
}
468-
469426
#[derive(Debug, Clone)]
470427
#[repr(C)]
471428
pub struct PackedVertexForTextureCacheUpdate {

webrender/src/texture_cache.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ impl TextureCache {
852852
result.item.allocated_rect.origin.y,
853853
result.item.allocated_rect.size.width,
854854
1,
855-
TextureUpdateDetails::Blit(top_row_bytes))
855+
TextureUpdateDetails::Blit(top_row_bytes, stride))
856856
};
857857

858858
let border_update_op_bottom = TextureUpdate {
@@ -863,7 +863,7 @@ impl TextureCache {
863863
result.item.requested_rect.size.height + 1,
864864
result.item.allocated_rect.size.width,
865865
1,
866-
TextureUpdateDetails::Blit(bottom_row_bytes))
866+
TextureUpdateDetails::Blit(bottom_row_bytes, stride))
867867
};
868868

869869
let border_update_op_left = TextureUpdate {
@@ -873,7 +873,7 @@ impl TextureCache {
873873
result.item.requested_rect.origin.y,
874874
1,
875875
result.item.requested_rect.size.height,
876-
TextureUpdateDetails::Blit(left_column_bytes))
876+
TextureUpdateDetails::Blit(left_column_bytes, stride))
877877
};
878878

879879
let border_update_op_right = TextureUpdate {
@@ -882,7 +882,7 @@ impl TextureCache {
882882
result.item.requested_rect.origin.y,
883883
1,
884884
result.item.requested_rect.size.height,
885-
TextureUpdateDetails::Blit(right_column_bytes))
885+
TextureUpdateDetails::Blit(right_column_bytes, stride))
886886
};
887887

888888
self.pending_updates.push(border_update_op_top);

0 commit comments

Comments
 (0)