|
|
color: Remove blink pre-conversion code
This removes ColorBehavior as a parameter to Image::draw. We will be
specifying color behavior on the SkSurface that we render to, so this
parameter is unneeded.
Make most callers to ColorBehavior specify ColorBehavior::defaultBehavior,
which will check runtime parameters to decide if pre-conversion or tagging
is appropriate.
Delete all references to "true color mode" -- Blink will not behave differently
in the two modes (it will always tag its inputs with their SkColorSpace).
Leave ColorBehavior as an argument to ImageDecoder, because some
interfaces (WebGL in particular) will want to specify the "ignore" behavior.
Don't remove ColorBehavior as an argument to imageForCurrentFrame, at
least yet. The SkImage created will need to specify some color space,
and allowing the caller to parameterize that is reasonable.
R=junov,chrishtr
TBR=esprehn
BUG= 667411
BUG= 667420
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2712083002
Cr-Commit-Position: refs/heads/master@{#454155}
Committed: https://chromium.googlesource.com/chromium/src/+/0713546fe2092b05fb75c52ba9da223adda2681f
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+59 lines, -130 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
|
View
|
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/shapes/Shape.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/svg/graphics/SVGImage.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/DragImageTest.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/BitmapImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.h
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp
|
View
|
|
5 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
|
View
|
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GraphicsContext.h
|
View
|
1
2
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
View
|
2
|
4 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
|
View
|
2
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
View
|
1
2
3
|
4 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Image.h
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Image.cpp
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
|
View
|
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PlaceholderImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 38 (29 generated)
|