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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)

Created:
3 years, 8 months ago by ccameron
Modified:
3 years, 8 months ago
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, Justin Novosad, dglazkov+blink, Rik, Stephen Chennney, fmalita+watch_chromium.org, blink-reviews-paint_chromium.org, blink-reviews, piman+watch_chromium.org, blink-reviews-frames_chromium.org, ajuma+watch_chromium.org, kinuko+watch, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb CanvasColorParams to canvas image classes Send the CanvasColorParams structure instead of the individual parameters. Propagate CanvasColorParams to DrawingBuffer, and use the specified color space instead of defaulting to SRGB. BUG=711107 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;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/2825183002 Cr-Commit-Position: refs/heads/master@{#465515} Committed: https://chromium.googlesource.com/chromium/src/+/914a3662e9947933953bf8e3935797621f48ec93

Patch Set 1 #

Total comments: 3

Patch Set 2 : Incoporate review feedback #

Patch Set 3 : Keep ImageBitmap changes behind runtime flag #

Patch Set 4 : Require both runtime flags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -241 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 1 chunk +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 6 chunks +10 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 chunk +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp View 1 2 3 2 chunks +2 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/paint/HTMLCanvasPainterTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 18 chunks +21 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h View 2 chunks +4 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h View 3 chunks +3 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 9 chunks +18 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp View 14 chunks +16 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasColorParams.h View 1 chunk +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp View 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 9 chunks +17 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h View 3 chunks +4 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h View 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp View 2 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 4 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h View 2 chunks +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (22 generated)
ccameron
ptal -- this is mostly just changing arguments around. https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode899 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:899: ...
3 years, 8 months ago (2017-04-18 21:23:51 UTC) #4
zakerinasab
https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode904 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:904: CanvasPixelFormat canvas_pixel_format = kRGBA8CanvasPixelFormat; I think we need to ...
3 years, 8 months ago (2017-04-18 21:46:58 UTC) #5
ccameron
Thanks -- updated. https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2825183002/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode904 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:904: CanvasPixelFormat canvas_pixel_format = kRGBA8CanvasPixelFormat; On 2017/04/18 ...
3 years, 8 months ago (2017-04-18 22:10:45 UTC) #6
ccameron
Adding pdr@ as OWNER
3 years, 8 months ago (2017-04-18 22:48:51 UTC) #10
pdr.
On 2017/04/18 at 22:48:51, ccameron wrote: > Adding pdr@ as OWNER The slimming paint v2 ...
3 years, 8 months ago (2017-04-18 22:56:57 UTC) #11
ccameron
Oop, needed to keep the ImageBitmap changes behind a flag. Updated.
3 years, 8 months ago (2017-04-18 23:10:51 UTC) #15
pdr.
On 2017/04/18 at 23:10:51, ccameron wrote: > Oop, needed to keep the ImageBitmap changes behind ...
3 years, 8 months ago (2017-04-18 23:17:53 UTC) #17
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/2825183002/60001
3 years, 8 months ago (2017-04-19 02:28:32 UTC) #25
ccameron
Adding esprehn@ for third_party/WebKit/Source/modules
3 years, 8 months ago (2017-04-19 02:33:59 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/414618)
3 years, 8 months ago (2017-04-19 02:37:36 UTC) #29
haraken
On 2017/04/19 02:37:36, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-19 05:53:24 UTC) #30
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/2825183002/60001
3 years, 8 months ago (2017-04-19 06:18:16 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 07:10:44 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/914a3662e9947933953bf8e39357...

Powered by Google App Engine
This is Rietveld 408576698