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

Issue 652483003: Plumb in flag to enable antialiased clipping in HTML 5 Canvas (Closed)

Created:
6 years, 2 months ago by robertphillips
Modified:
6 years, 2 months ago
CC:
blink-reviews, krit, pdr+graphicswatchlist_chromium.org, blink-reviews-html_chromium.org, jbroman, mkwst+moarreviews_chromium.org, danakj, dglazkov+blink, Rik, Stephen Chennney, aandrey+blink_chromium.org, rwlbuis, bsalomon_chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Plumb in flag to enable antialiased clipping in HTML 5 Canvas Here is the OWP tracking bug: https://code.google.com/p/chromium/issues/detail?id=422984 Here is the link to the entry on the feature dashboard: https://www.chromestatus.com/features/4871530282483712 Currently canvas clips are not antialiased which differs what what other browsers are doing and what the users expect. Skia supports antialiased clipping but Skia's gpu backend (which is used for canvas) can be significantly slower for concave clips. This CL starts surfacing the desired antialiased clipping behavior behind a flag so developers can start assessing the capability. There is a lot more work that needs to occur in Skia before we have a consistently good story for gpu-backed antialiased clipping so we will not be ready to switch behaviors for a while. BUG=crbug.com/7508 BUG=crbug.com/422984 junov: core & platform dglazkov: Source/web & public/web Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183830

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : More cleanup #

Total comments: 4

Patch Set 4 : Addressed code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -11 lines) Patch
M Source/core/frame/Settings.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 5 chunks +5 lines, -4 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 chunks +7 lines, -3 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
robertphillips
6 years, 2 months ago (2014-10-13 14:57:41 UTC) #5
dglazkov
On 2014/10/13 at 14:57:41, robertphillips wrote: > Give me a little bit more context... Why ...
6 years, 2 months ago (2014-10-13 15:46:27 UTC) #6
robertphillips
On 2014/10/13 15:46:27, dglazkov wrote: > On 2014/10/13 at 14:57:41, robertphillips wrote: > > > ...
6 years, 2 months ago (2014-10-13 16:01:17 UTC) #7
dglazkov
On 2014/10/13 at 15:46:27, dglazkov wrote: > Might be good to put these into a ...
6 years, 2 months ago (2014-10-13 16:13:38 UTC) #8
dglazkov
On 2014/10/13 at 16:01:17, robertphillips wrote: > On 2014/10/13 15:46:27, dglazkov wrote: > > On ...
6 years, 2 months ago (2014-10-13 16:14:17 UTC) #9
robertphillips
On 2014/10/13 16:14:17, dglazkov wrote: > On 2014/10/13 at 16:01:17, robertphillips wrote: > > On ...
6 years, 2 months ago (2014-10-13 17:35:35 UTC) #10
dglazkov
On 2014/10/13 at 17:35:35, robertphillips wrote: > I believe I have correctly initiated the intent-to-implement ...
6 years, 2 months ago (2014-10-13 18:05:53 UTC) #11
Justin Novosad
https://codereview.chromium.org/652483003/diff/160001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/652483003/diff/160001/Source/core/html/HTMLCanvasElement.cpp#newcode176 Source/core/html/HTMLCanvasElement.cpp:176: m_context = CanvasRenderingContext2D::create(this, static_cast<Canvas2DContextAttributes*>(attrs), document().inQuirksMode(), antialiasClips); Me wonders if ...
6 years, 2 months ago (2014-10-14 14:46:43 UTC) #12
robertphillips
https://codereview.chromium.org/652483003/diff/160001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/652483003/diff/160001/Source/core/html/HTMLCanvasElement.cpp#newcode176 Source/core/html/HTMLCanvasElement.cpp:176: m_context = CanvasRenderingContext2D::create(this, static_cast<Canvas2DContextAttributes*>(attrs), document().inQuirksMode(), antialiasClips); On 2014/10/14 14:46:43, ...
6 years, 2 months ago (2014-10-16 13:24:18 UTC) #13
Justin Novosad
lgtm
6 years, 2 months ago (2014-10-16 15:34:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652483003/280001
6 years, 2 months ago (2014-10-16 16:24:04 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 17:31:20 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:280001) as 183830

Powered by Google App Engine
This is Rietveld 408576698