|
Plumb color space to DecodingImageGenerator and ImageFrameGenerator
Image creation was failing in ExternalMemoryAllocator::allocPixelRef
because the SkImageInfo specified to the ExternalMemoryAllocator via
the ImageFrameGenerator that creates it did not include the color space
of the image. Populate this information by querying it from the decoder
in DecodingImageGenerator::create.
Change ImageDecoder::colorSpace to be the single place for enforcing
the rule that images that do not have embedded color profiles should be
interpreted as sRGB.
Change all callers to ImageFrame::setSizeAndColorSpace to query the
ImageDecoder::colorSpace, and enforce that the color space specified be
non-null.
Rename ImageDecoder::hasColorSpace to hasEmbeddedColorSpace to make it
clear that this refers only to an embedded color space (all images
have an explicit or implicit color space).
Rename ImageDecoder::setColorSpaceAndComputeTransform's overload to
setColorProfileAndComputeTransform, when the argument is a full ICC
profile.
BUG= 44872
Committed: https://crrev.com/65402021deb370b590ec564d93f941733308f477
Cr-Commit-Position: refs/heads/master@{#428864}
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+101 lines, -59 lines) |
Patch |
|
M |
third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
View
|
|
6 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
|
View
|
1
2
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
View
|
1
|
3 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
View
|
1
2
|
3 chunks |
+25 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
|
View
|
1
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
|
View
|
1
2
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 20 (13 generated)
|