Skip to content

BREAKING(web-sys): Remove support for CanvasRenderingContext2D and BufferSource from createImageBitmap #3231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 0 additions & 122 deletions crates/web-sys/src/features/gen_ChannelPixelLayout.rs

This file was deleted.

17 changes: 0 additions & 17 deletions crates/web-sys/src/features/gen_ChannelPixelLayoutDataType.rs

This file was deleted.

56 changes: 0 additions & 56 deletions crates/web-sys/src/features/gen_ImageBitmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,60 +32,4 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"]
pub fn close(this: &ImageBitmap);
#[cfg(feature = "ImageBitmapFormat")]
# [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)]
#[doc = "The `findOptimalFormat()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"]
pub fn find_optimal_format(this: &ImageBitmap) -> Result<ImageBitmapFormat, JsValue>;
#[cfg(feature = "ImageBitmapFormat")]
# [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)]
#[doc = "The `findOptimalFormat()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"]
pub fn find_optimal_format_with_a_possible_formats(
this: &ImageBitmap,
a_possible_formats: &::wasm_bindgen::JsValue,
) -> Result<ImageBitmapFormat, JsValue>;
#[cfg(feature = "ImageBitmapFormat")]
# [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)]
#[doc = "The `mapDataInto()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"]
pub fn map_data_into_with_buffer_source(
this: &ImageBitmap,
a_format: ImageBitmapFormat,
a_buffer: &::js_sys::Object,
a_offset: i32,
) -> Result<::js_sys::Promise, JsValue>;
#[cfg(feature = "ImageBitmapFormat")]
# [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)]
#[doc = "The `mapDataInto()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"]
pub fn map_data_into_with_u8_array(
this: &ImageBitmap,
a_format: ImageBitmapFormat,
a_buffer: &mut [u8],
a_offset: i32,
) -> Result<::js_sys::Promise, JsValue>;
#[cfg(feature = "ImageBitmapFormat")]
# [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mappedDataLength)]
#[doc = "The `mappedDataLength()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mappedDataLength)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"]
pub fn mapped_data_length(
this: &ImageBitmap,
a_format: ImageBitmapFormat,
) -> Result<i32, JsValue>;
}
22 changes: 0 additions & 22 deletions crates/web-sys/src/features/gen_ImageBitmapFormat.rs

This file was deleted.

Loading