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

Issue 2904143002: color: Perform color transform in ImageBufferSurface (Closed)

Created:
3 years, 7 months ago by ccameron
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, kinuko+watch, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Perform color transform in ImageBufferSurface When we draw a canvas element to a AcceleratedImageBufferSurface or to a UnacceleratedImageBufferSurface, we must transform the inputs to the color space specified by the CanvasColorParams it was initialized with. To do this, make the SkiaPaintCanvas wrap the SkCanvas in a SkColorSpaceXformCanvas. BUG=725372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2904143002 Cr-Commit-Position: refs/heads/master@{#475412} Committed: https://chromium.googlesource.com/chromium/src/+/30a7f83076be71351b71dfcb6cefee6ec2a9faca

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M cc/paint/skia_paint_canvas.h View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/paint/skia_paint_canvas.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 2 chunks +7 lines, -1 line 2 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 2 chunks +7 lines, -1 line 2 comments Download

Depends on Patchset:

Messages

Total messages: 14 (6 generated)
ccameron
This fixes offscreen and non-display-list-un-accelerated canvases.
3 years, 7 months ago (2017-05-25 22:08:10 UTC) #4
ccameron
ping on this
3 years, 7 months ago (2017-05-26 17:21:58 UTC) #5
Justin Novosad
https://codereview.chromium.org/2904143002/diff/1/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp (right): https://codereview.chromium.org/2904143002/diff/1/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp#newcode62 third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp:62: RuntimeEnabledFeatures::colorCorrectRenderingEnabled() && Any tests for this? Does it affect ...
3 years, 6 months ago (2017-05-29 14:45:35 UTC) #6
ccameron
This patch is to fix tests that are already failing with --enable-color-correct-rendering, so that I ...
3 years, 6 months ago (2017-05-29 15:27:17 UTC) #7
Justin Novosad
> This looked like the right behavior for offscreen canvas: Oh right, OffscreenCanvas! Of course! ...
3 years, 6 months ago (2017-05-29 16:54:35 UTC) #8
enne (OOO)
lgtm
3 years, 6 months ago (2017-05-29 23:35:07 UTC) #9
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/2904143002/1
3 years, 6 months ago (2017-05-30 00:45:39 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 03:10:25 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/30a7f83076be71351b71dfcb6cef...

Powered by Google App Engine
This is Rietveld 408576698