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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp

Issue 2787053004: Respect colorSpace in DecodingImageGenerator::onGetPixels() (Closed)
Patch Set: Response to comments Created 3 years, 8 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
Index: third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp
index f6226ad5280459df0d97419962401c65ca71ae2a..a473f4cc1cf0bc45cbcd7de4df60582f05fbaa40 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp
@@ -59,12 +59,13 @@ ImageDecodingStore& ImageDecodingStore::instance() {
bool ImageDecodingStore::lockDecoder(const ImageFrameGenerator* generator,
const SkISize& scaledSize,
+ ImageDecoder::AlphaOption alphaOption,
ImageDecoder** decoder) {
ASSERT(decoder);
MutexLocker lock(m_mutex);
DecoderCacheMap::iterator iter = m_decoderCacheMap.find(
- DecoderCacheEntry::makeCacheKey(generator, scaledSize));
+ DecoderCacheEntry::makeCacheKey(generator, scaledSize, alphaOption));
if (iter == m_decoderCacheMap.end())
return false;

Powered by Google App Engine
This is Rietveld 408576698