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

Issue 2401893002: [wrapper-tracing] WebGL and friends: Add write barriers (Closed)

Created:
4 years, 2 months ago by Michael Lippautz
Modified:
4 years, 2 months ago
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang, Hannes Payer (out of office), Justin Novosad, Kai Ninomiya, Zhenyao Mo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[wrapper-tracing] WebGL and friends: Add write barriers The patch adds the write barriers needed to run wrapper tracing incrementally. Overview: https://docs.google.com/spreadsheets/d/1RhLiHF9Pnw7Zx8EijuR0LruPkeiVJIXXi0eRkRDFwBc/edit#gid=0&vpid=A3 BUG=chromium:468240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/ad3f8c43888ff242c0afa96faf64a05de7227a5c Cr-Commit-Position: refs/heads/master@{#426456}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment #

Patch Set 3 : Rework to use TraceWrapperMember #

Total comments: 3

Patch Set 4 : Add wrappers for TextureUnitState #

Patch Set 5 : Rebase #

Patch Set 6 : Add missing write barrier found by the tests. #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -49 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h View 1 2 3 4 5 6 1 chunk +15 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 4 5 6 4 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLProgram.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 5 6 5 chunks +14 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 5 chunks +22 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (27 generated)
Michael Lippautz
And these are the write barriers needed for incremental wrapper tracing. As stated in the ...
4 years, 2 months ago (2016-10-07 12:24:41 UTC) #7
Marcel Hlopko
lgtm https://codereview.chromium.org/2401893002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2401893002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode283 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:283: ScriptWrappableVisitor::writeBarrier(this, m_context); Nit: Can we move write barrier ...
4 years, 2 months ago (2016-10-07 12:34:59 UTC) #8
Michael Lippautz
https://codereview.chromium.org/2401893002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2401893002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode283 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:283: ScriptWrappableVisitor::writeBarrier(this, m_context); On 2016/10/07 12:34:58, Marcel Hlopko wrote: > ...
4 years, 2 months ago (2016-10-07 12:48:52 UTC) #9
haraken
LGTM However, I begin to realize that we should have a way to detect missing ...
4 years, 2 months ago (2016-10-07 14:02:08 UTC) #12
Michael Lippautz
On 2016/10/07 14:02:08, haraken wrote: > LGTM > > However, I begin to realize that ...
4 years, 2 months ago (2016-10-07 15:27:58 UTC) #15
Ken Russell (switch to Gerrit)
I'm not sure what the semantics are of this function. Does it need to be ...
4 years, 2 months ago (2016-10-07 18:12:43 UTC) #16
Michael Lippautz
Thanks for the reviews! Testing: Currently we need to run locally with some other CL ...
4 years, 2 months ago (2016-10-07 18:31:38 UTC) #17
Ken Russell (switch to Gerrit)
On 2016/10/07 18:31:38, Michael Lippautz wrote: > Thanks for the reviews! > > Testing: Currently ...
4 years, 2 months ago (2016-10-07 18:53:31 UTC) #18
haraken
On 2016/10/07 18:53:31, Ken Russell wrote: > On 2016/10/07 18:31:38, Michael Lippautz wrote: > > ...
4 years, 2 months ago (2016-10-08 02:11:06 UTC) #19
Marcel Hlopko
So we have a manual: http://docs/document/d/1NAUFfejfJIkTVGXxM2QPwNqWczHi81eE83PaPcsl3pM/edit#heading=h.k8lv7r6sy2z2 But as Kentaro wrote, we are investigating a more ...
4 years, 2 months ago (2016-10-11 09:06:24 UTC) #20
Michael Lippautz
PTAL: We are now using the TraceWrapperMember type (where possible) https://codereview.chromium.org/2401893002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2401893002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode1776 ...
4 years, 2 months ago (2016-10-12 10:57:12 UTC) #22
haraken
https://codereview.chromium.org/2401893002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2401893002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode1776 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:1776: ScriptWrappableVisitor::writeBarrier(this, texture); On 2016/10/12 10:57:12, Michael Lippautz wrote: > ...
4 years, 2 months ago (2016-10-12 11:51:28 UTC) #23
Michael Lippautz
All converted. Last case uncovered an issue :) For most parts I am quite happy ...
4 years, 2 months ago (2016-10-12 12:50:38 UTC) #24
haraken
On 2016/10/12 12:50:38, Michael Lippautz wrote: > All converted. Last case uncovered an issue :) ...
4 years, 2 months ago (2016-10-12 13:42:03 UTC) #25
Michael Lippautz
On 2016/10/12 13:42:03, haraken wrote: > On 2016/10/12 12:50:38, Michael Lippautz wrote: > > All ...
4 years, 2 months ago (2016-10-12 13:46:39 UTC) #26
haraken
Makes sense. This looks much, much nicer. LGTM.
4 years, 2 months ago (2016-10-12 14:17:22 UTC) #27
Michael Lippautz
Going to land this now. FYI: The failures in PS5 showed the detection of a ...
4 years, 2 months ago (2016-10-14 08:11:32 UTC) #36
Ken Russell (switch to Gerrit)
LGTM from my standpoint, though I'd like to stress the importance for public documentation on ...
4 years, 2 months ago (2016-10-20 04:28:29 UTC) #37
Michael Lippautz
On 2016/10/20 04:28:29, Ken Russell wrote: > LGTM from my standpoint, though I'd like to ...
4 years, 2 months ago (2016-10-20 04:59:08 UTC) #38
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/2401893002/120001
4 years, 2 months ago (2016-10-20 12:31:15 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-20 12:39:11 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:36 UTC) #49
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ad3f8c43888ff242c0afa96faf64a05de7227a5c
Cr-Commit-Position: refs/heads/master@{#426456}

Powered by Google App Engine
This is Rietveld 408576698