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

Issue 895153002: Make CanvasRenderingContext2D use SkCanvas directly (Closed)

Created:
5 years, 10 months ago by Justin Novosad
Modified:
5 years, 10 months ago
CC:
aandrey+blink_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, danakj, dglazkov+blink, Dominik Röttsches, krit, f(malita), jbroman, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make CanvasRenderingContext2D use SkCanvas directly This is part 1 of making 2D canvas independent of blink::GraphicsContext This change bypasses GraphicsContext for managing matrix and clip state, and for state save/restore operations. BUG=453113 TEST=covered by existing canvas layout tests Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189599

Patch Set 1 #

Patch Set 2 : fixed debug validations #

Patch Set 3 : fixed state consistency issues #

Patch Set 4 : fixing component build #

Total comments: 14

Patch Set 5 : response to review #

Patch Set 6 : fix issues with clipping tests #

Patch Set 7 : fixing failing tests #

Patch Set 8 : fix issue with the copy composite operator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -125 lines) Patch
M Source/core/html/HTMLCanvasElement.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 7 36 chunks +113 lines, -99 lines 0 comments Download
M Source/core/html/canvas/ClipList.h View 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/canvas/ClipList.cpp View 1 chunk +4 lines, -8 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 1 chunk +8 lines, -1 line 0 comments Download
M Source/platform/graphics/skia/SkiaUtils.h View 1 2 3 4 5 6 1 chunk +14 lines, -1 line 0 comments Download

Messages

Total messages: 40 (13 generated)
Justin Novosad
PTAL
5 years, 10 months ago (2015-02-03 21:51:57 UTC) #2
Justin Novosad
5 years, 10 months ago (2015-02-04 05:59:08 UTC) #4
chrishtr
https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode429 Source/core/html/canvas/CanvasRenderingContext2D.cpp:429: // Temporary code while crbug.com/453113 is a WIP: GraphicsContext ...
5 years, 10 months ago (2015-02-04 07:17:49 UTC) #5
dshwang
https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode429 Source/core/html/canvas/CanvasRenderingContext2D.cpp:429: // Temporary code while crbug.com/453113 is a WIP: GraphicsContext ...
5 years, 10 months ago (2015-02-04 13:50:03 UTC) #7
Justin Novosad
On 2015/02/04 07:17:49, chrishtr wrote: > https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode429 > Source/core/html/canvas/CanvasRenderingContext2D.cpp:429: // Temporary code > while crbug.com/453113 ...
5 years, 10 months ago (2015-02-04 18:10:06 UTC) #8
chrishtr
On 2015/02/04 at 18:10:06, junov wrote: > On 2015/02/04 07:17:49, chrishtr wrote: > > https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode429 ...
5 years, 10 months ago (2015-02-04 18:23:48 UTC) #9
Justin Novosad
https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode853 Source/core/html/canvas/CanvasRenderingContext2D.cpp:853: c->rotate(angleInRadians * (180.0f / 3.14159265f)); On 2015/02/04 13:50:03, dshwang ...
5 years, 10 months ago (2015-02-04 18:37:47 UTC) #10
Justin Novosad
On 2015/02/04 18:23:48, chrishtr wrote: > On 2015/02/04 at 18:10:06, junov wrote: > > On ...
5 years, 10 months ago (2015-02-04 18:44:02 UTC) #11
Justin Novosad
On 2015/02/04 18:23:48, chrishtr wrote: > Also, would it be straightforward to do all the ...
5 years, 10 months ago (2015-02-04 18:45:32 UTC) #12
chrishtr
lgtm
5 years, 10 months ago (2015-02-04 18:56:16 UTC) #13
dshwang
lgtm
5 years, 10 months ago (2015-02-04 19:01:38 UTC) #15
Stephen Chennney
Some typos, I think. Also lgtm. https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/895153002/diff/60001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode129 Source/core/html/canvas/CanvasRenderingContext2D.cpp:129: ASSERT(static_cast<size_t>(skCanvas->getSaveCount() - 1) ...
5 years, 10 months ago (2015-02-04 19:19:00 UTC) #17
Justin Novosad
On 2015/02/04 19:19:00, Stephen Chenney wrote: > Some typos, I think. Also lgtm. > > ...
5 years, 10 months ago (2015-02-04 19:25:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895153002/100001
5 years, 10 months ago (2015-02-04 22:10:51 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/45331)
5 years, 10 months ago (2015-02-05 00:17:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895153002/100001
5 years, 10 months ago (2015-02-05 17:55:17 UTC) #25
Stephen Chennney
Actually, the failures seem real and consistent.
5 years, 10 months ago (2015-02-05 18:05:53 UTC) #27
Justin Novosad
On 2015/02/05 18:05:53, Stephen Chenney wrote: > Actually, the failures seem real and consistent. Yeah, ...
5 years, 10 months ago (2015-02-05 18:14:38 UTC) #28
Stephen Chennney
I'll see if I can repro.
5 years, 10 months ago (2015-02-05 18:18:56 UTC) #29
Justin Novosad
On 2015/02/05 18:18:56, Stephen Chenney wrote: > I'll see if I can repro. Took a ...
5 years, 10 months ago (2015-02-05 18:26:45 UTC) #30
chrishtr
On 2015/02/05 at 18:26:45, junov wrote: > On 2015/02/05 18:18:56, Stephen Chenney wrote: > > ...
5 years, 10 months ago (2015-02-05 18:29:02 UTC) #31
Justin Novosad
On 2015/02/05 18:26:45, junov wrote: > On 2015/02/05 18:18:56, Stephen Chenney wrote: > > I'll ...
5 years, 10 months ago (2015-02-05 18:29:14 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895153002/120001
5 years, 10 months ago (2015-02-05 19:39:39 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/45494)
5 years, 10 months ago (2015-02-05 21:38:50 UTC) #36
Justin Novosad
On 2015/02/05 21:38:50, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-05 22:08:10 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895153002/140001
5 years, 10 months ago (2015-02-05 22:32:13 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 01:17:54 UTC) #40
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189599

Powered by Google App Engine
This is Rietveld 408576698