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

Issue 2555213002: Implement color management for ImageData (Closed)

Created:
4 years ago by zakerinasab
Modified:
3 years, 11 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement color management for ImageData Implement color management for ImageData as described in this proposal: github.com/junov/CanvasColorSpace/blob/master/CanvasColorSpaceProposal.md Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/qu73qpdGunE BUG=670712 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/2555213002 Cr-Original-Commit-Position: refs/heads/master@{#442973} Committed: https://chromium.googlesource.com/chromium/src/+/7fb9535883e50ab0d7262ea8a0e8470934e57a9c Review-Url: https://codereview.chromium.org/2555213002 Cr-Commit-Position: refs/heads/master@{#443939} Committed: https://chromium.googlesource.com/chromium/src/+/96126d2114d57d2bea3a6de79214e22d92fd444a

Patch Set 1 : Work in progress #

Total comments: 46

Patch Set 2 : Addressing comments. #

Total comments: 8

Patch Set 3 : Unit tests added. ImageBitmap constructor from Float32ImageData to be done. #

Patch Set 4 : Rebaseline #

Patch Set 5 : Addressing issues #

Total comments: 16

Patch Set 6 : Addressing comments, adding layout tests #

Patch Set 7 : Rebaselining layout tests #

Patch Set 8 : Rebaseline #

Patch Set 9 : Rebaseline #

Patch Set 10 : Rebaseline #

Patch Set 11 : Rebaselining layout tests #

Total comments: 1

Patch Set 12 : Fixing memory allocation issue. #

Patch Set 13 : Fixing ImageData::validateConstructorArguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+915 lines, -111 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/canvas-Float32ImageData-constructor.html View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-Float32ImageData-workers.html View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageData-workers-expected.txt View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/color-space/imageData-colorSpace.html View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-Float32ImageData.js View 1 2 3 4 5 6 1 chunk +121 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-Float32ImageData-workers.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMTypedArray.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/Float32ImageData.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +96 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/Float32ImageData.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +173 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/Float32ImageData.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.h View 1 2 3 4 5 3 chunks +65 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +241 lines, -88 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.idl View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 69 (46 generated)
Justin Novosad
CL is missing tests. It needs lot of tests. https://codereview.chromium.org/2555213002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2555213002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode14 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:14: ...
4 years ago (2016-12-08 18:16:35 UTC) #4
zakerinasab
Comments addressed. Working on layout tests now. https://codereview.chromium.org/2555213002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2555213002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode14 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:14: #include "bindings/core/v8/V8Float32ImageData.h" ...
4 years ago (2016-12-08 20:40:52 UTC) #5
Justin Novosad
https://codereview.chromium.org/2555213002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2555213002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode127 third_party/WebKit/Source/core/html/ImageData.cpp:127: exceptionState.throwDOMException(V8Error, this should be V8RangeError https://codereview.chromium.org/2555213002/diff/80001/third_party/WebKit/Source/core/html/ImageData.idl File third_party/WebKit/Source/core/html/ImageData.idl (right): ...
4 years ago (2016-12-08 20:58:59 UTC) #6
zakerinasab
New patch submitted to address the comments. https://codereview.chromium.org/2555213002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2555213002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode127 third_party/WebKit/Source/core/html/ImageData.cpp:127: exceptionState.throwDOMException(V8Error, On ...
4 years ago (2016-12-08 22:13:52 UTC) #7
zakerinasab1
New patch submitted. PTAL. jochen@ for bindings/core/v8/BUILD.gn junov@ for everything else. Thanks.
4 years ago (2016-12-16 16:46:15 UTC) #19
Justin Novosad
https://codereview.chromium.org/2555213002/diff/220001/third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html File third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html (right): https://codereview.chromium.org/2555213002/diff/220001/third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html#newcode12 third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html:12: assert_equals((new Float32ImageData(1, 1)).colorSpace, "linear-rgb"); Each of these assertions is ...
4 years ago (2016-12-16 18:38:11 UTC) #22
jochen (gone - plz use gerrit)
can you please point to the "intent to implement" thread? (link it from the CL ...
4 years ago (2016-12-19 12:02:27 UTC) #23
zakerinasab1
New patch submitted addressing junov@ comments and adding the functionality layout tests for Float32ImageData. https://codereview.chromium.org/2555213002/diff/220001/third_party/WebKit/LayoutTests/fast/canvas/color-space/float32ImageData-colorSpace.html ...
4 years ago (2016-12-19 19:57:39 UTC) #25
Justin Novosad
lgtm
4 years ago (2016-12-20 17:50:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2555213002/360001
4 years ago (2016-12-21 19:29:28 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_optional_gpu_tests_rel/builds/6215)
4 years ago (2016-12-22 00:12:09 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2555213002/380001
4 years ago (2016-12-22 15:50:08 UTC) #39
jochen (gone - plz use gerrit)
I cancelled commit as the CL description still doesn't include the "intent to implement" link, ...
4 years ago (2016-12-22 16:03:31 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2555213002/420001
3 years, 11 months ago (2017-01-10 19:44:18 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97166)
3 years, 11 months ago (2017-01-10 21:34:32 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2555213002/440001
3 years, 11 months ago (2017-01-11 17:18:53 UTC) #51
commit-bot: I haz the power
Committed patchset #11 (id:440001) as https://chromium.googlesource.com/chromium/src/+/7fb9535883e50ab0d7262ea8a0e8470934e57a9c
3 years, 11 months ago (2017-01-11 19:09:48 UTC) #54
sullivan
A revert of this CL (patchset #11 id:440001) has been created in https://codereview.chromium.org/2636533002/ by sullivan@chromium.org. ...
3 years, 11 months ago (2017-01-13 14:04:27 UTC) #55
sullivan
On 2017/01/13 14:04:27, sullivan wrote: > A revert of this CL (patchset #11 id:440001) has ...
3 years, 11 months ago (2017-01-13 14:19:44 UTC) #56
esprehn
https://codereview.chromium.org/2555213002/diff/440001/third_party/WebKit/Source/core/html/Float32ImageData.cpp File third_party/WebKit/Source/core/html/Float32ImageData.cpp (right): https://codereview.chromium.org/2555213002/diff/440001/third_party/WebKit/Source/core/html/Float32ImageData.cpp#newcode2 third_party/WebKit/Source/core/html/Float32ImageData.cpp:2: * Copyright (C) 2016 Google Inc. All rights reserved. ...
3 years, 11 months ago (2017-01-13 22:39:11 UTC) #58
Justin Novosad
patch 12 lgtm
3 years, 11 months ago (2017-01-16 16:29:49 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2555213002/540001
3 years, 11 months ago (2017-01-16 19:22:24 UTC) #66
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 20:24:42 UTC) #69
Message was sent while issue was closed.
Committed patchset #13 (id:540001) as
https://chromium.googlesource.com/chromium/src/+/96126d2114d57d2bea3a6de79214...

Powered by Google App Engine
This is Rietveld 408576698