Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Issue 14856010: Adding color space conversion code (Closed)

Created:
7 years, 7 months ago by sugoi1
Modified:
7 years, 6 months ago
CC:
blink-reviews, danakj, jamesr, Stephen Chennney, jeez, Noel Gordon, jbroman
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Adding color space conversion code This adds the missing color space conversion to the GPU path. Basically, whenever a color conversion is required, an SkColorFilter object is created and inserted into the filter tree to perform that color space conversion. The luts used in ImageBuffer were changed to unsigned 8 bit luts (the extra bits were unused anyway) and made publicly available in that class so that they can be used as is by SkTableColorFilter. R=senorblanco@chromium.org BUG=229689 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151966

Patch Set 1 #

Total comments: 3

Patch Set 2 : Adding color space conversion code #

Total comments: 2

Patch Set 3 : Adding color space conversion code #

Total comments: 6

Patch Set 4 : Fixing my ASCII art #

Total comments: 1

Patch Set 5 : Adding color space conversion code #

Patch Set 6 : Trying to upload again... #

Patch Set 7 : Trying to upload again... #

Patch Set 8 : Trying to upload again... #

Patch Set 9 : and again #

Patch Set 10 : Hoping this uploads properly #

Patch Set 11 : Adding color space conversion code #

Total comments: 11

Patch Set 12 : Fixing comments #

Patch Set 13 : Removing the "binary" file #

Patch Set 14 : Fixing test compilation #

Total comments: 4

Patch Set 15 : Attemptimp to re-upload the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -79 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/css3/filters/effect-reference.html View 1 2 3 4 4 chunks +10 lines, -10 lines 0 comments Download
A LayoutTests/css3/filters/effect-reference-colorspace.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A LayoutTests/css3/filters/effect-reference-colorspace-hw.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +69 lines, -0 lines 0 comments Download
M LayoutTests/css3/filters/effect-reference-composite.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/filters/effect-reference-composite-hw.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/filters/effect-reference-hw.html View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
M LayoutTests/css3/filters/effect-reference-image-hw.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/filters/effect-reference-ordering.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/filters/effect-reference-ordering-hw.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/WebKit/chromium/WebKit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A Source/WebKit/chromium/tests/ImageFilterBuilderTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +142 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/ImageBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/platform/graphics/ImageBuffer.cpp View 1 2 2 chunks +32 lines, -23 lines 0 comments Download
M Source/core/platform/graphics/filters/FEBlend.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/FEColorMatrix.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEComponentTransfer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEComposite.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/FEConvolveMatrix.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEDisplacementMap.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/FEFlood.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/FEFlood.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/filters/FEGaussianBlur.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FELighting.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEMerge.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEMorphology.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FEOffset.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h View 1 2 2 chunks +18 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +36 lines, -6 lines 0 comments Download
M Source/core/platform/graphics/skia/ImageBufferSkia.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/FilterEffectRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +49 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
sugoi1
https://codereview.chromium.org/14856010/diff/1/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp (right): https://codereview.chromium.org/14856010/diff/1/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp#newcode182 Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp:182: FilterColorSpacePair key((ptrdiff_t)effect, colorSpace); I used ptrdiff_t here for simplicity. ...
7 years, 7 months ago (2013-05-02 18:03:28 UTC) #1
Stephen White
Looks like a great start. Please add a new test, with subtests for the different ...
7 years, 7 months ago (2013-05-02 18:45:17 UTC) #2
sugoi1
Will work on test next. https://codereview.chromium.org/14856010/diff/1/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp (right): https://codereview.chromium.org/14856010/diff/1/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp#newcode182 Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp:182: FilterColorSpacePair key((ptrdiff_t)effect, colorSpace); On ...
7 years, 7 months ago (2013-05-02 20:00:18 UTC) #3
Stephen White
https://codereview.chromium.org/14856010/diff/5001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h (right): https://codereview.chromium.org/14856010/diff/5001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h#newcode36 Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h:36: namespace WTF { Maybe this chunk could be below ...
7 years, 7 months ago (2013-05-02 20:22:58 UTC) #4
sugoi1
On 2013/05/02 20:22:58, Stephen White wrote: > https://codereview.chromium.org/14856010/diff/5001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h > File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h (right): > > https://codereview.chromium.org/14856010/diff/5001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.h#newcode36 ...
7 years, 7 months ago (2013-05-02 20:34:37 UTC) #5
eseidel
7 years, 7 months ago (2013-05-02 23:07:48 UTC) #6
sugoi1
- Added unit test - Added new LayoutTests (and corresponding entry in TestExpectations) - Fixed ...
7 years, 7 months ago (2013-05-10 14:38:44 UTC) #7
Stephen White
https://codereview.chromium.org/14856010/diff/13001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp (right): https://codereview.chromium.org/14856010/diff/13001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp#newcode187 Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp:187: // Note that we may still need the color ...
7 years, 7 months ago (2013-05-10 14:56:18 UTC) #8
sugoi1
https://codereview.chromium.org/14856010/diff/21003/Source/WebKit/chromium/tests/ImageFilterBuilderTest.cpp File Source/WebKit/chromium/tests/ImageFilterBuilderTest.cpp (right): https://codereview.chromium.org/14856010/diff/21003/Source/WebKit/chromium/tests/ImageFilterBuilderTest.cpp#newcode111 Source/WebKit/chromium/tests/ImageFilterBuilderTest.cpp:111: // Source Graphic (D) The bots didn't like my ...
7 years, 7 months ago (2013-05-10 14:58:03 UTC) #9
sugoi1
https://codereview.chromium.org/14856010/diff/13001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp File Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp (right): https://codereview.chromium.org/14856010/diff/13001/Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp#newcode187 Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp:187: // Note that we may still need the color ...
7 years, 7 months ago (2013-05-10 15:10:18 UTC) #10
sugoi1
Ok, I had a lot of problems with "git cl upload" constantly giving me the ...
7 years, 7 months ago (2013-05-16 20:25:24 UTC) #11
sugoi1
Updated this cl after my 2 weeks off and fixed a small FEFlood colorspace issue. ...
7 years, 6 months ago (2013-06-03 20:15:22 UTC) #12
Stephen White
https://codereview.chromium.org/14856010/diff/47001/LayoutTests/css3/filters/effect-reference-colorspace-hw.html File LayoutTests/css3/filters/effect-reference-colorspace-hw.html (right): https://codereview.chromium.org/14856010/diff/47001/LayoutTests/css3/filters/effect-reference-colorspace-hw.html#newcode3 LayoutTests/css3/filters/effect-reference-colorspace-hw.html:3: <filter id="blend" color-interpolation-filters="linearRGB"> We should probably have some test ...
7 years, 6 months ago (2013-06-04 14:55:40 UTC) #13
sugoi1
I fixed senorblanco's comments Note that the layout tests seem to be constantly failing at ...
7 years, 6 months ago (2013-06-05 14:57:30 UTC) #14
sugoi1
Removed hueRotate.svg, as it is unfortunately tagged as a "binary" file which causes issues with ...
7 years, 6 months ago (2013-06-05 15:24:21 UTC) #15
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 6 months ago (2013-06-05 21:04:55 UTC) #16
Stephen White
Sorry, I think something is borked in Rietveld and/or git cl upload, but I can't ...
7 years, 6 months ago (2013-06-05 21:13:19 UTC) #17
sugoi1
I'll update / re-upload and if that fails again, I'll try creating a new cl ...
7 years, 6 months ago (2013-06-06 14:48:24 UTC) #18
Stephen White
LGTM
7 years, 6 months ago (2013-06-06 15:14:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sugoi@chromium.org/14856010/102001
7 years, 6 months ago (2013-06-06 15:14:57 UTC) #20
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=1237
7 years, 6 months ago (2013-06-06 15:24:56 UTC) #21
sugoi1
Adding jochen@ as a reviewer to get an owner's LGTM on the WebKit.gypi file.
7 years, 6 months ago (2013-06-06 15:30:13 UTC) #22
jochen (gone - plz use gerrit)
WebKit.gypi lgtm
7 years, 6 months ago (2013-06-06 16:05:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sugoi@chromium.org/14856010/102001
7 years, 6 months ago (2013-06-06 16:09:05 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=9011
7 years, 6 months ago (2013-06-06 16:59:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sugoi@chromium.org/14856010/102001
7 years, 6 months ago (2013-06-06 19:40:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sugoi@chromium.org/14856010/102001
7 years, 6 months ago (2013-06-06 20:09:15 UTC) #27
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 21:21:41 UTC) #28
Message was sent while issue was closed.
Change committed as 151966

Powered by Google App Engine
This is Rietveld 408576698