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

Issue 24096029: Moved the majority of WebGL functionality into WebGLRenderingContextBase (Closed)

Created:
7 years, 3 months ago by bajones
Modified:
6 years, 9 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, aandrey+blink_chromium.org, marja+watch_chromium.org, dglazkov+blink, Rik, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Moved the majority of WebGL functionality into WebGLRenderingContextBase This is in anticipation of the requirements for implementing WebGL2 BUG=295792 R=kbr@chromium.org, marja@chromium.org, zmo@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167715

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revamped extension testing, added featureLevel #

Total comments: 6

Patch Set 3 : Some minor cleanups #

Patch Set 4 : Epic Rebasing of Doom! #

Patch Set 5 : Added version to WebGLAttributes and related changes #

Patch Set 6 : Rebased again, removed version #

Patch Set 7 : Bi-weekly rebasing #

Patch Set 8 : Yet another messy rebase #

Patch Set 9 : Post-Thanksgiving rebase #

Patch Set 10 : Re-wrote patch by hand (too much to rebase) #

Total comments: 3

Patch Set 11 : Addressed feedback. Restored old license block headers #

Patch Set 12 : Updated layout test expectations #

Patch Set 13 : Rebase + missed layout test update #

Patch Set 14 : Fixed const correctness bug on debug builds #

Patch Set 15 : Fixed typo in gypi, was only causing issues on Windows (?!?) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+873 lines, -8724 lines) Patch
M LayoutTests/fast/canvas/webgl/bad-arguments-test-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -52 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/gl-object-get-calls-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/webgl/null-object-behaviour-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/texImageTest-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/webgl-exceptions-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -16 lines 0 comments Download
M LayoutTests/http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/virtual/gpu/fast/canvas/webgl/gl-object-get-calls-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/bindings.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A + Source/bindings/v8/custom/V8WebGLRenderingContextBaseCustom.cpp View 1 2 3 4 5 6 7 8 9 10 26 chunks +93 lines, -90 lines 0 comments Download
D Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -847 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/canvas/ANGLEInstancedArrays.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/ANGLEInstancedArrays.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/EXTFragDepth.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/EXTFragDepth.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/EXTTextureFilterAnisotropic.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESElementIndexUint.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESElementIndexUint.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESStandardDerivatives.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESStandardDerivatives.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureFloat.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureFloat.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureFloatLinear.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureFloatLinear.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureHalfFloat.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureHalfFloat.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureHalfFloatLinear.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESTextureHalfFloatLinear.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/OESVertexArrayObject.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/OESVertexArrayObject.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLBuffer.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLBuffer.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTextureATC.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTextureATC.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTexturePVRTC.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTexturePVRTC.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTextureS3TC.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLCompressedTextureS3TC.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLContextGroup.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/canvas/WebGLContextGroup.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLContextObject.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/canvas/WebGLContextObject.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLDebugRendererInfo.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLDebugRendererInfo.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLDebugShaders.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLDebugShaders.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLDepthTexture.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLDepthTexture.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLDrawBuffers.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLDrawBuffers.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/canvas/WebGLExtension.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -28 lines 0 comments Download
M Source/core/html/canvas/WebGLExtension.cpp View 1 chunk +1 line, -1 line 0 comments Download
A Source/core/html/canvas/WebGLExtensionName.h View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLFramebuffer.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLFramebuffer.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +9 lines, -9 lines 0 comments Download
M Source/core/html/canvas/WebGLLoseContext.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLLoseContext.cpp View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/canvas/WebGLObject.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLObject.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/WebGLProgram.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLProgram.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderbuffer.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderbuffer.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -863 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -5479 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -648 lines 0 comments Download
A + Source/core/html/canvas/WebGLRenderingContextBase.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +49 lines, -52 lines 0 comments Download
A + Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 243 chunks +353 lines, -405 lines 0 comments Download
A + Source/core/html/canvas/WebGLRenderingContextBase.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 1 comment Download
M Source/core/html/canvas/WebGLShader.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLShader.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLSharedObject.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLSharedObject.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLTexture.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLTexture.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLVertexArrayObjectOES.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
bajones
Putting this up for the sake of discussion. No WebGL 2 functionality here, but this ...
7 years, 3 months ago (2013-09-20 19:24:24 UTC) #1
Zhenyao Mo
I like this CL. Thanks for this effort to start the wheel. https://codereview.chromium.org/24096029/diff/1/Source/core/html/canvas/WebGLDepthTexture.h File Source/core/html/canvas/WebGLDepthTexture.h ...
7 years, 3 months ago (2013-09-20 23:04:44 UTC) #2
bajones
https://codereview.chromium.org/24096029/diff/1/Source/core/html/canvas/WebGLRenderingContextBase.h File Source/core/html/canvas/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/24096029/diff/1/Source/core/html/canvas/WebGLRenderingContextBase.h#newcode381 Source/core/html/canvas/WebGLRenderingContextBase.h:381: const String m_contextName; On 2013/09/20 23:04:45, Zhenyao Mo wrote: ...
7 years, 3 months ago (2013-09-20 23:08:49 UTC) #3
bajones
Some weekend changes for your consideration. https://codereview.chromium.org/24096029/diff/9001/Source/core/html/canvas/WebGLExtensionNames.h File Source/core/html/canvas/WebGLExtensionNames.h (right): https://codereview.chromium.org/24096029/diff/9001/Source/core/html/canvas/WebGLExtensionNames.h#newcode32 Source/core/html/canvas/WebGLExtensionNames.h:32: enum WebGLExtensionName { ...
7 years, 3 months ago (2013-09-24 00:12:00 UTC) #4
bajones
After doing some more work on a WebGL 2 prototype built on top of this, ...
7 years, 2 months ago (2013-09-29 17:45:34 UTC) #5
Zhenyao Mo
On 2013/09/29 17:45:34, bajones wrote: > After doing some more work on a WebGL 2 ...
7 years, 2 months ago (2013-09-30 20:46:55 UTC) #6
bajones
Nasty rebase done. :P kbr@: Please take a look dcarney@, marja@: I'd appreciate a review ...
7 years, 2 months ago (2013-10-01 06:17:15 UTC) #7
marja
On 2013/10/01 06:17:15, bajones wrote: > Nasty rebase done. :P > > kbr@: Please take ...
7 years, 2 months ago (2013-10-02 09:05:50 UTC) #8
bajones
Give today's WebGL call and the decision to use the "webgl2" contextId, this should be ...
7 years, 2 months ago (2013-10-10 23:28:35 UTC) #9
bajones
Bi-weekly hand waving reminder that this CL would really appreciate some love. It really is ...
7 years, 1 month ago (2013-10-29 23:30:25 UTC) #10
bajones
Another visit from the rebase fairy!
7 years ago (2013-12-03 00:16:40 UTC) #11
Ken Russell (switch to Gerrit)
Again, I apologize for not reviewing this yet. Per our offline discussion, I would strongly ...
7 years ago (2013-12-04 00:23:59 UTC) #12
bajones
Now that the GraphicsContext3D removal is complete I felt it would be a good time ...
6 years, 10 months ago (2014-02-13 19:15:25 UTC) #13
Ken Russell (switch to Gerrit)
I'm sorry for taking so long to review this. LGTM. https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.cpp File Source/core/html/canvas/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.cpp#newcode4111 ...
6 years, 10 months ago (2014-02-21 23:40:19 UTC) #14
bajones
https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.idl File Source/core/html/canvas/WebGLRenderingContextBase.idl (right): https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.idl#newcode3 Source/core/html/canvas/WebGLRenderingContextBase.idl:3: // found in the LICENSE file. On 2014/02/21 23:40:20, ...
6 years, 10 months ago (2014-02-22 00:47:08 UTC) #15
Ken Russell (switch to Gerrit)
On 2014/02/22 00:47:08, bajones wrote: > https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.idl > File Source/core/html/canvas/WebGLRenderingContextBase.idl (right): > > https://codereview.chromium.org/24096029/diff/141001/Source/core/html/canvas/WebGLRenderingContextBase.idl#newcode3 > ...
6 years, 10 months ago (2014-02-22 00:55:22 UTC) #16
bajones
On 2014/02/22 00:55:22, Ken Russell wrote: > On 2014/02/22 00:47:08, bajones wrote: > > > ...
6 years, 10 months ago (2014-02-22 00:58:30 UTC) #17
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-22 01:00:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/24096029/741001
6 years, 10 months ago (2014-02-22 01:00:58 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 01:44:42 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout&number=20742
6 years, 10 months ago (2014-02-22 01:44:42 UTC) #21
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-23 22:55:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/24096029/951001
6 years, 10 months ago (2014-02-23 22:56:02 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-23 23:44:26 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout&number=20770
6 years, 10 months ago (2014-02-23 23:44:27 UTC) #25
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-24 06:17:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/24096029/1101001
6 years, 10 months ago (2014-02-24 06:17:26 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-24 06:59:44 UTC) #28
commit-bot: I haz the power
Retried try job too often on mac_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout&number=20801
6 years, 10 months ago (2014-02-24 06:59:45 UTC) #29
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-24 17:49:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/24096029/1281001
6 years, 10 months ago (2014-02-24 17:49:18 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-24 18:59:10 UTC) #32
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=23091
6 years, 10 months ago (2014-02-24 18:59:11 UTC) #33
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-24 23:33:06 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/24096029/1421001
6 years, 10 months ago (2014-02-24 23:33:28 UTC) #35
bajones
Committed patchset #15 manually as r167715 (presubmit successful).
6 years, 10 months ago (2014-02-25 00:52:02 UTC) #36
arv (Not doing code reviews)
6 years, 9 months ago (2014-02-27 22:09:59 UTC) #37
Message was sent while issue was closed.
https://codereview.chromium.org/24096029/diff/1421001/Source/core/html/canvas...
File Source/core/html/canvas/WebGLRenderingContextBase.idl (right):

https://codereview.chromium.org/24096029/diff/1421001/Source/core/html/canvas...
Source/core/html/canvas/WebGLRenderingContextBase.idl:44: NoInterfaceObject
Why?

https://code.google.com/p/chromium/issues/detail?id=347714

Powered by Google App Engine
This is Rietveld 408576698