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

Issue 2924373002: color: Convert BitmapImage to sRGB ahead of time (Closed)

Created:
3 years, 6 months ago by ccameron
Modified:
3 years, 6 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews, blink-reviews-frames_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Convert BitmapImage to sRGB ahead of time We are always sending these images to sRGB canvases, so do the conversion ahead of time. This fixes a bug wherein, when a WebGLRenderingContext reads a BitmapImage it wants the image to be in sRGB (if not-none was requested). We will eventually need to decide how a color-canvas-using WebGLRenderingContext should handle non-sRGB images. BUG=730983 Review-Url: https://codereview.chromium.org/2924373002 Cr-Commit-Position: refs/heads/master@{#478564} Committed: https://chromium.googlesource.com/chromium/src/+/64db61998368ffd368f477a57b749f9a5a0dc9aa

Patch Set 1 #

Patch Set 2 : Format #

Patch Set 3 : Format #

Patch Set 4 : Add scale bits #

Total comments: 8

Patch Set 5 : Remove extra param #

Patch Set 6 : Include removing test filter #

Patch Set 7 : One more expectations #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -13 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 4 7 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
ccameron
ptal -- this is the patch we discussed I may have to rebaseline a few ...
3 years, 6 months ago (2017-06-08 21:24:23 UTC) #2
Justin Novosad
https://codereview.chromium.org/2924373002/diff/60001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2924373002/diff/60001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode49 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:49: bool convert_to_srgb = false; This new member is confusing ...
3 years, 6 months ago (2017-06-09 14:08:34 UTC) #5
ccameron
Updated to be a bit more clear about behavior here. I'm not using the SkSurface ...
3 years, 6 months ago (2017-06-09 17:01:33 UTC) #6
Justin Novosad
lgtm
3 years, 6 months ago (2017-06-09 19:59:42 UTC) #7
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/2924373002/140001
3 years, 6 months ago (2017-06-12 06:50:14 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 08:27:17 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/64db61998368ffd368f477a57b74...

Powered by Google App Engine
This is Rietveld 408576698