update skia decoding

This commit is contained in:
Luke Pulverenti
2017-07-01 21:22:23 -04:00
parent e318e2ab9f
commit 6eec35ecbd
2 changed files with 6 additions and 4 deletions

View File

@@ -183,8 +183,8 @@ namespace Emby.Drawing.Skia
}
}
private string[] TransparentImageTypes = new string[] { ".png", ".gif", ".webp" };
private SKBitmap Decode(string path, bool forceCleanBitmap, out SKCodecOrigin origin)
private static string[] TransparentImageTypes = new string[] { ".png", ".gif", ".webp" };
internal static SKBitmap Decode(string path, bool forceCleanBitmap, out SKCodecOrigin origin)
{
var requiresTransparencyHack = TransparentImageTypes.Contains(Path.GetExtension(path) ?? string.Empty);