|
|
Use gfx::ColorSpace instead of SkColorSpace in Blink
gfx::ColorSpace is used as input (speciying monitor color space) and
output (compositor texture mailbox) format for color spaces. Avoid
conversions by using this directly instead of SkColorSpace.
The SkColorSpace to pass to Skia APIs is accessible via the method
gfx::ColorSpace::ToSkColorSpace.
Delete gfx::ColorSpace::FromSkColorSpace and
gfx::ICCProfile::FromSkColorSpace, since they could not be implemented
reliably.
For CanvasRenderingContext and Canvas2DLayerBridge, create a
distinction between the gfx::ColorSpace that the canvas is to be
interpreted in by the compositor, and the SkColorSpace that is to be
used by SkSurfaces during rendering (for canvases that are not using
Skia's color conversion, but still need to specify their color space to
the compositor).
BUG= 634102
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2660393002
Cr-Commit-Position: refs/heads/master@{#447969}
Committed: https://chromium.googlesource.com/chromium/src/+/628896ee553990e2f0dc60a5a2c7b0b44535a10f
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+213 lines, -269 lines) |
Patch |
 |
M |
third_party/WebKit/PRESUBMIT.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
View
|
1
2
3
4
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/ImageData.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
View
|
1
|
1 chunk |
+23 lines, -43 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
|
View
|
1
|
8 chunks |
+27 lines, -31 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
|
View
|
1
2
3
4
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
View
|
1
2
3
4
|
8 chunks |
+17 lines, -37 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
|
View
|
1
2
3
4
|
14 chunks |
+29 lines, -23 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ColorBehavior.h
|
View
|
|
4 chunks |
+12 lines, -22 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp
|
View
|
1
2
3
4
|
4 chunks |
+16 lines, -22 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
View
|
1
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/color_space.h
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/color_space.cc
|
View
|
1
2
3
4
|
4 chunks |
+22 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/color_space_win.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/icc_profile.h
|
View
|
1
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/icc_profile.cc
|
View
|
1
4
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/icc_profile_unittest.cc
|
View
|
1
2
|
3 chunks |
+8 lines, -19 lines |
0 comments
|
Download
|
Total messages: 36 (25 generated)
|