diff --git a/IGraphics/Drawing/IGraphicsSkia.cpp b/IGraphics/Drawing/IGraphicsSkia.cpp index a2a0d74e50..81a11c8a9f 100644 --- a/IGraphics/Drawing/IGraphicsSkia.cpp +++ b/IGraphics/Drawing/IGraphicsSkia.cpp @@ -78,9 +78,7 @@ IGraphicsSkia::Bitmap::Bitmap(const char* path, double sourceScale) auto image = SkImage::MakeFromEncoded(data); -#ifdef IGRAPHICS_CPU image = image->makeRasterImage(); -#endif mDrawable.mImage = image; @@ -93,9 +91,7 @@ IGraphicsSkia::Bitmap::Bitmap(const void* pData, int size, double sourceScale) auto data = SkData::MakeWithoutCopy(pData, size); auto image = SkImage::MakeFromEncoded(data); -#ifdef IGRAPHICS_CPU image = image->makeRasterImage(); -#endif mDrawable.mImage = image; @@ -105,11 +101,7 @@ IGraphicsSkia::Bitmap::Bitmap(const void* pData, int size, double sourceScale) IGraphicsSkia::Bitmap::Bitmap(sk_sp image, double sourceScale) { -#ifdef IGRAPHICS_CPU mDrawable.mImage = image->makeRasterImage(); -#else - mDrawable.mImage = image; -#endif SetBitmap(&mDrawable, mDrawable.mImage->width(), mDrawable.mImage->height(), sourceScale, 1.f); }