|
cc: Add color space to image decode caches
Add a color space argument to the image decode caches, so that they can
- create SkImages in the correct color space
- not re-use SkImages decoded into different color spaces
Add a gfx::ColorSpace argument to DrawImage, which is used (roughly) as
a key in SoftwareImageDecodeCache and GpuImageDecodeCache. Ensure that
the caches respect this key and add tests. Do not ensure that the caches
always create SkImages using this color space, because that
functionality still needs some work.
Specify a gfx::ColorSpace to the ImageHijackCanvas, indicating the
target color space for images to be put in and pulled from the image
caches.
Update RasterSource::GetDiscardableImagesInRect to specify the color
space for images, and plumb this through to
DiscardableImageMap::GetDiscardableImagesInRect, which will populate
the color spaces for decoding tasks.
This patch will have no effect while color correct rendering is
disabled, because the ColorSpace objects being passed around will
all be invalid.
BUG= 706613
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2797583002
Cr-Commit-Position: refs/heads/master@{#462371}
Committed: https://chromium.googlesource.com/chromium/src/+/bdb2737223ac58596bffeb66a079dc6a80c3e5cc
Total comments: 27
Total comments: 5
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+677 lines, -311 lines) |
Patch |
 |
M |
cc/layers/recording_source_unittest.cc
|
View
|
|
15 chunks |
+31 lines, -26 lines |
0 comments
|
Download
|
 |
M |
cc/paint/discardable_image_map.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/paint/discardable_image_map.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/paint/discardable_image_map_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/paint/display_item_list.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/paint/display_item_list.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/paint/draw_image.h
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/paint/draw_image.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/raster/image_hijack_canvas.h
|
View
|
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/raster/image_hijack_canvas.cc
|
View
|
|
11 chunks |
+24 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cc/raster/image_hijack_canvas_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/raster/raster_source.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/raster/raster_source.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/raster/raster_source_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+15 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/checker_image_tracker_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/tiles/gpu_image_decode_cache.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/gpu_image_decode_cache.cc
|
View
|
1
2
3
4
5
6
7
|
17 chunks |
+63 lines, -37 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/gpu_image_decode_cache_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
54 chunks |
+162 lines, -62 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/image_controller.cc
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/tiles/software_image_decode_cache.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/software_image_decode_cache.cc
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+43 lines, -25 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/software_image_decode_cache_perftest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/tiles/software_image_decode_cache_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
61 chunks |
+206 lines, -86 lines |
0 comments
|
Download
|
 |
M |
cc/tiles/tile_manager.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 48 (30 generated)
|