Skip to content

Commit

Permalink
Backed out changeset 76f0bd102fa8 (bug 1882044) for causing bug 18824…
Browse files Browse the repository at this point in the history
…16 bug 1882321 bug 1882367. CLOSED TREE

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/3eb7bb0e7d35712bdcc53bfffb762441a05a7c11
  • Loading branch information
Sandor Molnar committed Feb 28, 2024
1 parent f07d5b7 commit 8ddce6f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webrender/src/picture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5014,7 +5014,7 @@ impl PicturePrimitive {

let content_device_rect = content_device_rect
.intersection(&max_content_rect)
.expect("bug: no intersection with tile dirty rect: {content_device_rect:?} / {max_content_rect:?}");
.expect("bug: no intersection with tile dirty rect");

let content_task_size = content_device_rect.size();
let normalized_content_rect = content_task_size.into();
Expand Down
1 change: 0 additions & 1 deletion webrender/src/render_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,6 @@ impl RenderTask {
size: DeviceIntSize,
kind: RenderTaskKind,
) -> Self {
assert!(!size.is_empty());
RenderTask::new(
RenderTaskLocation::Unallocated { size },
kind,
Expand Down
2 changes: 1 addition & 1 deletion webrender/src/renderer/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl UploadTexturePool {
ImageFormat::RGBA8 => 0,
ImageFormat::BGRA8 => 1,
ImageFormat::R8 => 2,
_ => { panic!("unexpected format {:?}", format); }
_ => { panic!("unexpected format"); }
}
}

Expand Down

0 comments on commit 8ddce6f

Please sign in to comment.