mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 02:48:12 +08:00
Make gcore a std library and remove std, alloc, and more unused features (#2724)
* gcore: remove features `std`, `alloc`, `gpu` and `reflections`, now always available * gcore: remove non-working features `kurbo` and `log`
This commit is contained in:
committed by
Keavon Chambers
parent
6b69a75391
commit
34dced38ba
@@ -243,38 +243,6 @@ impl GraphicElement {
|
||||
}
|
||||
}
|
||||
|
||||
// // TODO: Rename to Raster
|
||||
// #[derive(Clone, Debug, Hash, PartialEq, DynAny)]
|
||||
// pub enum RasterDataType {
|
||||
// /// A CPU-based bitmap image with a finite position and extent, equivalent to the SVG <image> tag: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image
|
||||
// // TODO: Rename to ImageTable
|
||||
// RasterData(RasterDataTable<CPU>),
|
||||
// /// A GPU texture with a finite position and extent
|
||||
// // TODO: Rename to ImageTextureTable
|
||||
// TextureData(TextureDataTable),
|
||||
// }
|
||||
|
||||
// impl<'de> serde::Deserialize<'de> for RasterDataType {
|
||||
// fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||
// where
|
||||
// D: serde::Deserializer<'de>,
|
||||
// {
|
||||
// Ok(RasterDataType::RasterData(RasterDataTable::new(Image::deserialize(deserializer)?)))
|
||||
// }
|
||||
// }
|
||||
|
||||
// impl serde::Serialize for RasterDataType {
|
||||
// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
// where
|
||||
// S: serde::Serializer,
|
||||
// {
|
||||
// match self {
|
||||
// RasterDataType::RasterData(_) => self.serialize(serializer),
|
||||
// RasterDataType::TextureData(_) => todo!(),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
impl<'de> serde::Deserialize<'de> for Raster<CPU> {
|
||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user