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

Issue 13637006: Add canvas blending modes under a runtime flag (Closed)

Created:
7 years, 8 months ago by rosca
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, pdr, Max Heinritz
Base URL:
http://src.chromium.org/blink/trunk/
Visibility:
Public.

Description

Add canvas blending modes behind a runtime flag BUG=229111 TEST=fast/canvas/canvas-blend-*

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Adding runtime flag #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -15 lines) Patch
M LayoutTests/fast/canvas/canvas-blend-image-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-blend-solid-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-blend-image.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-blend-solid.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/GraphicsContext.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/skia/ImageBufferSkia.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/skia/ImageSkia.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/skia/SkiaUtils.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/skia/SkiaUtils.cpp View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
rosca
I merged the proposed changes from https://bugs.webkit.org/show_bug.cgi?id=100071. Please review.
7 years, 8 months ago (2013-04-08 15:51:48 UTC) #1
Stephen Chennney
https://codereview.chromium.org/13637006/diff/1/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp File Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp (right): https://codereview.chromium.org/13637006/diff/1/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp#newcode274 Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp:274: context->drawImage(image.get(), styleColorSpace, destRect, srcRect, op, blendMode, DoNotRespectImageOrientation, useLowQualityScale); Does ...
7 years, 8 months ago (2013-04-08 16:07:02 UTC) #2
rosca
https://codereview.chromium.org/13637006/diff/1/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp File Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp (right): https://codereview.chromium.org/13637006/diff/1/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp#newcode274 Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp:274: context->drawImage(image.get(), styleColorSpace, destRect, srcRect, op, blendMode, DoNotRespectImageOrientation, useLowQualityScale); On ...
7 years, 8 months ago (2013-04-08 19:53:25 UTC) #3
Stephen Chennney
Only one more step. This should be run through try jobs just to make sure ...
7 years, 8 months ago (2013-04-08 20:45:07 UTC) #4
RikC
On 2013/04/08 20:45:07, Stephen Chenney wrote: > Only one more step. This should be run ...
7 years, 8 months ago (2013-04-08 21:33:10 UTC) #5
Stephen Chennney
On 2013/04/08 21:33:10, RikC wrote: > On 2013/04/08 20:45:07, Stephen Chenney wrote: > > Only ...
7 years, 8 months ago (2013-04-08 22:46:32 UTC) #6
RikC
> Maybe you do. Tomorrow I'll apply the patch and try it. Then I can ...
7 years, 8 months ago (2013-04-08 22:59:32 UTC) #7
eseidel
Are we just implementing part of the existing <canvas> spec, or is this a new ...
7 years, 8 months ago (2013-04-09 07:26:34 UTC) #8
rosca
On 2013/04/09 07:26:34, Eric Seidel (Google) wrote: > Are we just implementing part of the ...
7 years, 8 months ago (2013-04-09 08:18:19 UTC) #9
eseidel
This was not mentioned in the change description, and sounds like something which should go ...
7 years, 8 months ago (2013-04-09 08:20:19 UTC) #10
rosca
Nightly Firefox and WebKit already have this feature in place (http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/)
7 years, 8 months ago (2013-04-09 08:22:28 UTC) #11
eseidel
That sounds like a good argument for it's inclusion in Blink, but it also seems ...
7 years, 8 months ago (2013-04-09 08:25:21 UTC) #12
Stephen Chennney
On 2013/04/09 08:25:21, Eric Seidel (Google) wrote: > That sounds like a good argument for ...
7 years, 8 months ago (2013-04-09 13:24:54 UTC) #13
rosca
I adapted the patch to the latest blink and put blending modes under a runtime ...
7 years, 8 months ago (2013-04-25 13:54:22 UTC) #14
eseidel
I'm confused as to the runtime flag? Which RuntimeEnabledFeature flag does this use? How would ...
7 years, 8 months ago (2013-04-26 18:11:35 UTC) #15
Rik
On 2013/04/26 18:11:35, Eric Seidel (Google) wrote: > I'm confused as to the runtime flag? ...
7 years, 8 months ago (2013-04-26 19:50:33 UTC) #16
Rik
On 2013/04/26 18:11:35, Eric Seidel (Google) wrote: > I'm confused as to the runtime flag? ...
7 years, 8 months ago (2013-04-26 22:38:56 UTC) #17
Rik
On 2013/04/25 13:54:22, Rosca wrote: > I adapted the patch to the latest blink and ...
7 years, 8 months ago (2013-04-26 22:51:47 UTC) #18
eseidel
https://codereview.chromium.org/13637006/diff/22001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/13637006/diff/22001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode613 Source/core/html/canvas/CanvasRenderingContext2D.cpp:613: if (!canvas()->document()->cssCompositingEnabled() && blendMode != BlendModeNormal) Is cassCompositing a ...
7 years, 8 months ago (2013-04-27 03:57:41 UTC) #19
rosca
I uploaded a new patch. Tests are skipped because the blending&compositing feature is still under ...
7 years, 7 months ago (2013-04-30 21:06:27 UTC) #20
RikC
> This setting shouldn't be different among different document objects. I changed > it to ...
7 years, 7 months ago (2013-05-01 04:07:10 UTC) #21
rosca
I uploaded a new patch adapted to the latest blink changes. Eric, could you review ...
7 years, 7 months ago (2013-05-08 19:30:40 UTC) #22
eseidel
https://codereview.chromium.org/13637006/diff/79001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/13637006/diff/79001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode615 Source/core/html/canvas/CanvasRenderingContext2D.cpp:615: if (!RuntimeEnabledFeatures::cssCompositingEnabled() && blendMode != BlendModeNormal) I'm confused. Did ...
7 years, 7 months ago (2013-05-08 19:34:44 UTC) #23
rosca
https://codereview.chromium.org/13637006/diff/79001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/13637006/diff/79001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode615 Source/core/html/canvas/CanvasRenderingContext2D.cpp:615: if (!RuntimeEnabledFeatures::cssCompositingEnabled() && blendMode != BlendModeNormal) As described in ...
7 years, 7 months ago (2013-05-08 21:37:17 UTC) #24
Rik
> I'm confused. Did we change the parsing? Was it already possible to pass a ...
7 years, 7 months ago (2013-05-09 00:34:30 UTC) #25
eseidel
I see. So we've long supported parsing of these modes, but that wasn't detectable because ...
7 years, 7 months ago (2013-05-09 07:34:35 UTC) #26
rosca
On 2013/05/09 07:34:35, Eric Seidel wrote: > I see. So we've long supported parsing of ...
7 years, 7 months ago (2013-05-09 07:41:45 UTC) #27
rosca
> Rik started a parallel review > for this issue which already got committed. This ...
7 years, 7 months ago (2013-05-09 07:42:26 UTC) #28
Rik
On 2013/05/09 07:34:35, Eric Seidel wrote: > I see. So we've long supported parsing of ...
7 years, 7 months ago (2013-05-09 19:45:36 UTC) #29
Rik
On 2013/05/09 07:42:26, Rosca wrote: > > Rik started a parallel review > > for ...
7 years, 7 months ago (2013-05-09 19:46:27 UTC) #30
Rik
On 2013/05/09 19:46:27, Rik wrote: > On 2013/05/09 07:42:26, Rosca wrote: > > > Rik ...
7 years, 7 months ago (2013-05-09 19:47:07 UTC) #31
eseidel
7 years, 7 months ago (2013-05-09 20:00:39 UTC) #32
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698