Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1743)

Unified Diff: Source/platform/MIMETypeRegistry.cpp

Issue 1302423004: Support lossy and lossless <canvas>.toDataURL for webp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/ImageBuffer.cpp » ('j') | Source/platform/graphics/ImageBuffer.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/MIMETypeRegistry.cpp
diff --git a/Source/platform/MIMETypeRegistry.cpp b/Source/platform/MIMETypeRegistry.cpp
index 8887aeddc4f47e91c5b8a8d0af1e715051aa0f8c..c845be05c0289a892526e077fc38dd188cb24ffe 100644
--- a/Source/platform/MIMETypeRegistry.cpp
+++ b/Source/platform/MIMETypeRegistry.cpp
@@ -87,7 +87,7 @@ bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeTyp
{
if (equalIgnoringCase(mimeType, "image/jpeg") || equalIgnoringCase(mimeType, "image/png"))
return true;
- if (equalIgnoringCase(mimeType, "image/webp"))
+ if (equalIgnoringCase(mimeType, "image/webp") || equalIgnoringCase(mimeType, "image/webplossless"))
acterhd 2015/08/27 17:18:19 Better use "image/webp+lossless".
return true;
return false;
}
« no previous file with comments | « no previous file | Source/platform/graphics/ImageBuffer.cpp » ('j') | Source/platform/graphics/ImageBuffer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698