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

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

Issue 2787053004: Respect colorSpace in DecodingImageGenerator::onGetPixels() (Closed)
Patch Set: Rebase 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 259f2b601f85edaa51ea49dcd68f295136a357fa..bd1a528df76181a4f222806acd1ff24b657cd27c 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& scaled_size,
+ ImageDecoder::AlphaOption alpha_option,
ImageDecoder** decoder) {
DCHECK(decoder);
MutexLocker lock(mutex_);
DecoderCacheMap::iterator iter = decoder_cache_map_.Find(
- DecoderCacheEntry::MakeCacheKey(generator, scaled_size));
+ DecoderCacheEntry::MakeCacheKey(generator, scaled_size, alpha_option));
if (iter == decoder_cache_map_.end())
return false;

Powered by Google App Engine
This is Rietveld 408576698