|
Introduce GrColorSpaceXform, for gamut conversion on textures
GrTextureAccess optionally includes an instance, computed from the src
and dst color spaces. In all common cases (no color space for either src
or dst, or same color space for both), no object is allocated.
This change is orthogonal to my attempts to get color space attached to
render targets - regardless of how we choose to do that, this will give
us the source color space at all points where we are connecting src to
dst.
There are many dangling injection points where I've been inserting
nullptr, but I have a record of all of them. Additionally, there are now
three places (the most common simple paths for bitmap/image rendering)
where things are plumbed enough that I expect to have access to the dst
color space (all marked with XFORMTODO).
In addition to getting the dst color space, I need to inject shader code
and uniform uploading for appendTextureLookup and friends.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2154753003
Committed: https://skia.googlesource.com/skia/+/54f30c13fc0a5d89797fc9be5f0fb1050d96b6f4
Total comments: 4
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+310 lines, -89 lines) |
Patch |
|
M |
gm/texdata.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/texturedomaineffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gyp/gpu.gypi
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
include/gpu/GrColorSpaceXform.h
|
View
|
1
2
3
4
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/gpu/GrPaint.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkBitmapProcShader.cpp
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurMaskFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkGpuBlurUtils.cpp
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkLightingImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMagnifierImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkXfermodeImageFilter.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrBlurUtils.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrClipMaskManager.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
src/gpu/GrColorSpaceXform.cpp
|
View
|
1
2
3
4
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrContext.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrPaint.cpp
|
View
|
|
1 chunk |
+13 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrPipelineBuilder.h
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrSWMaskHelper.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrTextureParamsAdjuster.cpp
|
View
|
1
2
3
|
6 chunks |
+22 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrTextureToYUVPlanes.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/SkGpuDevice.cpp
|
View
|
1
2
3
|
3 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/Gr1DKernelEffect.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrBicubicEffect.h
|
View
|
1
2
|
4 chunks |
+27 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrBicubicEffect.cpp
|
View
|
1
2
3
4
|
9 chunks |
+28 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrConfigConversionEffect.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrMatrixConvolutionEffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrSimpleTextureEffect.h
|
View
|
|
2 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrSimpleTextureEffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrSingleTextureEffect.h
|
View
|
1
2
3
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrSingleTextureEffect.cpp
|
View
|
1
2
3
|
1 chunk |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrTextureDomain.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/gpu/effects/GrTextureDomain.cpp
|
View
|
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
A |
src/gpu/glsl/GrGLSLColorSpaceXformHelper.h
|
View
|
1
2
3
4
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/image/SkImageShader.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/SRGBMipMapTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tools/gpu/GrTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 30 (18 generated)
|