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

Issue 2771813003: Prepare ImageData for color managed BaseRenderingContext2D::create/put/get-ImageData (Closed)

Created:
3 years, 9 months ago by zakerinasab
Modified:
3 years, 8 months ago
Reviewers:
tasak, Justin Novosad
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, Justin Novosad, haraken, dglazkov+blink, Rik, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare ImageData for color managed BaseRenderingContext2D::create/put/get-ImageData * createImageData() and getImageData() must return an ImageData for which the color space and storage format matches those of canvas. If canvas pixel format is "float16", the storage format of the returned ImageData must be "float32". Values must be properly converted from float16 to float32. * putImageData must do the color conversion from the color space and storage format of given ImageData to the color space and matching pixel format of canvas prior to putting data into the canvas. This CL does half the job by adding required methods and the proper unit tests to ImageData. BUG=704155, 706850 Review-Url: https://codereview.chromium.org/2771813003 Cr-Original-Commit-Position: refs/heads/master@{#461249} Committed: https://chromium.googlesource.com/chromium/src/+/8befd9e691b73db52cc1d6edb6a99c1043a15b89 Review-Url: https://codereview.chromium.org/2771813003 Cr-Commit-Position: refs/heads/master@{#461758} Committed: https://chromium.googlesource.com/chromium/src/+/c4df23d876fddc1f90b17aeaf4bad970239c6ecf

Patch Set 1 #

Patch Set 2 : Work in progress #

Patch Set 3 : Unit test added #

Total comments: 14

Patch Set 4 : Addressing comments #

Patch Set 5 : Minor fixes #

Patch Set 6 : Removing non-ImageData changes to break the CL to two #

Patch Set 7 : Minor fixes #

Patch Set 8 : Fixing some issues, turning on all test scenarios #

Patch Set 9 : Minor corrections #

Total comments: 2

Patch Set 10 : Addressing comments #

Total comments: 4

Patch Set 11 : Fixing issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+795 lines, -123 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.h View 1 2 3 4 5 6 7 chunks +53 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.cpp View 1 2 3 4 5 6 7 8 9 10 16 chunks +398 lines, -92 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDataTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +335 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
zakerinasab
New CL uploaded. Still lacking some unit tests. PTAL.
3 years, 9 months ago (2017-03-27 18:15:43 UTC) #3
Justin Novosad
https://codereview.chromium.org/2771813003/diff/40001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2771813003/diff/40001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode397 third_party/WebKit/Source/core/html/ImageData.cpp:397: CanvasColorSpace ImageData::getCanvasColorSpace(const String& colorSpaceName) { In blink, don't use ...
3 years, 9 months ago (2017-03-27 19:43:49 UTC) #4
zakerinasab
Comments addressed. New unit test added for image data color conversion test, even though it ...
3 years, 8 months ago (2017-03-30 17:56:11 UTC) #5
zakerinasab
The last CL must be ready for review. I removed non-ImageData changes that are needed ...
3 years, 8 months ago (2017-03-31 17:39:14 UTC) #9
Justin Novosad
lgtm with nit. https://codereview.chromium.org/2771813003/diff/160001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2771813003/diff/160001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode666 third_party/WebKit/Source/core/html/ImageData.cpp:666: } Perhaps: else { NOTREACHED(); }
3 years, 8 months ago (2017-03-31 20:20:19 UTC) #10
zakerinasab
https://codereview.chromium.org/2771813003/diff/160001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2771813003/diff/160001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode666 third_party/WebKit/Source/core/html/ImageData.cpp:666: } On 2017/03/31 20:20:19, Justin Novosad wrote: > Perhaps: ...
3 years, 8 months ago (2017-03-31 20:32:09 UTC) #11
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/2771813003/180001
3 years, 8 months ago (2017-03-31 20:33:17 UTC) #14
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/8befd9e691b73db52cc1d6edb6a99c1043a15b89
3 years, 8 months ago (2017-03-31 22:18:39 UTC) #17
inglorion
Looks like there are some bot failures that refer to this code. E.g. https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxASan%20tester/builds/1969 (which ...
3 years, 8 months ago (2017-04-03 21:38:02 UTC) #18
Timothy Loh
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2798523002/ by timloh@chromium.org. ...
3 years, 8 months ago (2017-04-04 05:10:23 UTC) #19
tasak
FYI https://codereview.chromium.org/2771813003/diff/180001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2771813003/diff/180001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode513 third_party/WebKit/Source/core/html/ImageData.cpp:513: numPixels = content.sizeInBytes(); I think, number of pixels ...
3 years, 8 months ago (2017-04-04 06:30:16 UTC) #21
zakerinasab
https://codereview.chromium.org/2771813003/diff/180001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2771813003/diff/180001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode513 third_party/WebKit/Source/core/html/ImageData.cpp:513: numPixels = content.sizeInBytes(); On 2017/04/04 06:30:15, tasak wrote: > ...
3 years, 8 months ago (2017-04-04 16:24:47 UTC) #25
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/2771813003/200001
3 years, 8 months ago (2017-04-04 16:24:52 UTC) #26
zakerinasab
I also did a through check to make sure this is not happening somewhere else. ...
3 years, 8 months ago (2017-04-04 16:25:31 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 17:14:09 UTC) #30
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/c4df23d876fddc1f90b17aeaf4ba...

Powered by Google App Engine
This is Rietveld 408576698