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

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed)

Created:
4 years, 4 months ago by Kai Ninomiya
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete old preserveObjectWrapper stuff, use visitDOMWrapper instead to preserve WebGL JS object wrappers. This covers expando-loss, expando-loss-2, new tests added in expando-loss-2, and expando tests in extension tests. BUG=581997 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/b7615cfadeb59ac220bd5994d4ec6f99341452f0 Cr-Commit-Position: refs/heads/master@{#416686}

Patch Set 1 #

Patch Set 2 : fix everything; expando-loss and expando-loss-2 now pass #

Patch Set 3 : fix everything; expando-loss and expando-loss-2 now pass #

Patch Set 4 : fix an unused variable #

Patch Set 5 : fix for new tests added in expando-loss-2, plus 2 extension test failures #

Patch Set 6 : cleanup, code dedup, rebase #

Patch Set 7 : fix for expando properties on WebGL extensions #

Patch Set 8 : rebase #

Total comments: 11

Patch Set 9 : rebase + address Ken's comment #

Total comments: 8

Patch Set 10 : style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -259 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h View 1 chunk +0 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/custom.gni View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/custom.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.idl View 1 2 3 4 5 6 7 8 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 7 8 8 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 4 5 6 7 8 13 chunks +46 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLBuffer.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h View 3 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLObject.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLProgram.h View 3 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLProgram.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLQuery.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderbuffer.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 5 6 7 8 12 chunks +23 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 26 chunks +50 lines, -126 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl View 5 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLSampler.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLShader.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTexture.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTransformFeedback.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObject.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h View 3 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 65 (46 generated)
Kai Ninomiya
PTAL, thanks. Performance results: https://crbug.com/581997#c23
4 years, 3 months ago (2016-08-31 21:23:11 UTC) #34
haraken
https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md File third_party/WebKit/Source/bindings/IDLExtendedAttributes.md (right): https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#newcode869 third_party/WebKit/Source/bindings/IDLExtendedAttributes.md:869: #### [Custom=VisitDOMWrapperExtra] _(i)_ I do want to avoid introducing ...
4 years, 3 months ago (2016-08-31 23:14:50 UTC) #35
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md File third_party/WebKit/Source/bindings/IDLExtendedAttributes.md (right): https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#newcode869 third_party/WebKit/Source/bindings/IDLExtendedAttributes.md:869: #### [Custom=VisitDOMWrapperExtra] _(i)_ On 2016/08/31 23:14:50, haraken wrote: > ...
4 years, 3 months ago (2016-09-01 00:08:49 UTC) #36
haraken
On 2016/09/01 00:08:49, Ken Russell wrote: > https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md > File third_party/WebKit/Source/bindings/IDLExtendedAttributes.md (right): > > https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#newcode869 ...
4 years, 3 months ago (2016-09-01 00:29:23 UTC) #37
Ken Russell (switch to Gerrit)
On 2016/09/01 00:29:23, haraken wrote: > On 2016/09/01 00:08:49, Ken Russell wrote: > > > ...
4 years, 3 months ago (2016-09-01 05:23:37 UTC) #40
haraken
On 2016/09/01 05:23:37, Ken Russell wrote: > On 2016/09/01 00:29:23, haraken wrote: > > On ...
4 years, 3 months ago (2016-09-01 07:41:47 UTC) #41
Yuki
Is it possible to make visitDOMWrapper call visitDOMWrapperCustom? I'm thinking something like follows. // code-generated ...
4 years, 3 months ago (2016-09-01 08:34:32 UTC) #42
haraken
On 2016/09/01 08:34:32, Yuki wrote: > Is it possible to make visitDOMWrapper call visitDOMWrapperCustom? > ...
4 years, 3 months ago (2016-09-01 08:35:50 UTC) #43
Ken Russell (switch to Gerrit)
This is an excellent cleanup. It LGTM overall once haraken's and yukishiino's comments are addressed ...
4 years, 3 months ago (2016-09-01 21:03:54 UTC) #44
haraken
On 2016/09/01 08:35:50, haraken wrote: > On 2016/09/01 08:34:32, Yuki wrote: > > Is it ...
4 years, 3 months ago (2016-09-01 21:10:30 UTC) #45
Kai Ninomiya
https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md File third_party/WebKit/Source/bindings/IDLExtendedAttributes.md (right): https://codereview.chromium.org/2273683003/diff/140001/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#newcode869 third_party/WebKit/Source/bindings/IDLExtendedAttributes.md:869: #### [Custom=VisitDOMWrapperExtra] _(i)_ On 2016/09/01 00:08:49, Ken Russell wrote: ...
4 years, 3 months ago (2016-09-02 18:29:22 UTC) #49
haraken
LGTM! Just to confirm: These wrappers are not used by worker threads, right? Currently there ...
4 years, 3 months ago (2016-09-02 19:08:41 UTC) #51
Ken Russell (switch to Gerrit)
Excellent. LGTM again. https://codereview.chromium.org/2273683003/diff/180001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2273683003/diff/180001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5253 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5253: if (extension) { This null-check isn't ...
4 years, 3 months ago (2016-09-02 19:13:57 UTC) #52
Kai Ninomiya
https://codereview.chromium.org/2273683003/diff/180001/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp (right): https://codereview.chromium.org/2273683003/diff/180001/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp#newcode2 third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp:2: * Copyright (C) 2016 Google Inc. All rights reserved. ...
4 years, 3 months ago (2016-09-03 01:02:06 UTC) #56
haraken
Still LGTM
4 years, 3 months ago (2016-09-03 12:01:04 UTC) #57
Yuki
LGTM.
4 years, 3 months ago (2016-09-05 06:07:51 UTC) #58
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/2273683003/200001
4 years, 3 months ago (2016-09-06 16:43:32 UTC) #61
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 3 months ago (2016-09-06 18:53:21 UTC) #63
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 18:56:54 UTC) #65
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b7615cfadeb59ac220bd5994d4ec6f99341452f0
Cr-Commit-Position: refs/heads/master@{#416686}

Powered by Google App Engine
This is Rietveld 408576698