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

Issue 2192493003: Enable GPU acceleration in 2D OffscreenCanvases on main thread (Closed)

Created:
4 years, 4 months ago by Justin Novosad
Modified:
4 years, 4 months ago
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, Rik, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, haraken, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable GPU acceleration in 2D OffscreenCanvases on main thread This change allows OffscreenCanvasRenderingContext2D to create an AcceleratedImageBufferSurface for its backing on platforms that support GPU-accelerated canvas. The plumbing of the runtime option for controlling the availability of accelerated canvases was moved from WebSettings to RuntimeEnableFeatures so that we no longer need to access the DOM in order to access the feature flag. BUG=593514 Committed: https://crrev.com/524668f2a8ed8d87a049a2dc1e74ff0134c8f82f Cr-Commit-Position: refs/heads/master@{#410423}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix layout test failures #

Total comments: 2

Patch Set 4 : static #

Patch Set 5 : fix dev tools failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -27 lines) Patch
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/compositing/content-changed-chicken-egg.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/compositing/content-changed-chicken-egg-expected.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas-all.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas-border.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas-padding.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas-with-mask.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas-with-shadow.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 3 3 chunks +23 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 38 (24 generated)
Justin Novosad
PTAL
4 years, 4 months ago (2016-07-27 19:12:22 UTC) #4
Justin Novosad
+esprehn for blink API review
4 years, 4 months ago (2016-07-27 20:04:41 UTC) #12
xlai (Olivia)
Hmmm...Why don't you re-use the accelerated2dCanvas flag? Reasons: 1. The flag is already used in ...
4 years, 4 months ago (2016-07-28 15:10:22 UTC) #13
Justin Novosad
On 2016/07/28 15:10:22, xlai (Olivia) wrote: > Hmmm...Why don't you re-use the accelerated2dCanvas flag? Reasons: ...
4 years, 4 months ago (2016-08-02 17:59:06 UTC) #14
xlai (Olivia)
On 2016/08/02 17:59:06, junov (slow until August 8) wrote: > On 2016/07/28 15:10:22, xlai (Olivia) ...
4 years, 4 months ago (2016-08-02 20:50:27 UTC) #15
Justin Novosad
> This makes sense to me. Please move forward in rebasing the failing tests. Done. ...
4 years, 4 months ago (2016-08-02 22:15:51 UTC) #18
xlai (Olivia)
On 2016/08/02 22:15:51, junov (slow until August 8) wrote: > > This makes sense to ...
4 years, 4 months ago (2016-08-03 20:05:49 UTC) #25
esprehn
please fix the static or namespace issue before landing. :) lgtm https://codereview.chromium.org/2192493003/diff/40001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): ...
4 years, 4 months ago (2016-08-05 21:28:38 UTC) #26
Justin Novosad
> https://codereview.chromium.org/2192493003/diff/40001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode30 > third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:30: > Accelerated2dCanvas status=stable, settable_from_internals=True > direct to stable? What's the purpose ...
4 years, 4 months ago (2016-08-05 21:34:44 UTC) #27
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/2192493003/60001
4 years, 4 months ago (2016-08-05 21:53:03 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/257005)
4 years, 4 months ago (2016-08-05 23:08:55 UTC) #32
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/2192493003/80001
4 years, 4 months ago (2016-08-08 18:08:43 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-08 20:17:10 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 20:18:59 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/524668f2a8ed8d87a049a2dc1e74ff0134c8f82f
Cr-Commit-Position: refs/heads/master@{#410423}

Powered by Google App Engine
This is Rietveld 408576698