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

Issue 1120953002: WebGL 2: add read/write framebuffer binding points to related APIs (Closed)

Created:
5 years, 7 months ago by yunchao
Modified:
5 years, 6 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

WebGL 2: add read/write framebuffer binding points to related APIs. BUG=295792 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197696

Patch Set 1 : #

Total comments: 17

Patch Set 2 : addressed kbr@'s and bajones@'s feedback #

Total comments: 2

Patch Set 3 : addressed kbr@'s feedback #

Total comments: 28

Patch Set 4 : addressed zmo@'s and kbr@'s feedback #

Total comments: 25

Patch Set 5 : addressed zmo@'s feedback: ScopedDrawingBufferBinder is not correct for WebGL2 #

Patch Set 6 : in DrawingBuffer::commit, we should bind to the single-sampled FB at the end, instead of the multis… #

Total comments: 5

Patch Set 7 : addressed zmo@'s feedback #

Patch Set 8 : addressed zmo@'s feedback #

Patch Set 9 : addressed zmo@'s feedback: WebGLFramebuffer::isBound need to be updated #

Total comments: 4

Patch Set 10 : addressed kbr@'s feedback: remove an argument that is not used #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -98 lines) Patch
M Source/core/html/canvas/WebGL2RenderingContextBase.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGL2RenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +40 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLFramebuffer.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -9 lines 0 comments Download
M Source/core/html/canvas/WebGLFramebuffer.cpp View 1 2 3 4 5 6 7 8 9 11 chunks +39 lines, -39 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 20 chunks +48 lines, -32 lines 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 3 4 6 5 chunks +24 lines, -6 lines 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 6 6 chunks +28 lines, -9 lines 0 comments Download

Messages

Total messages: 47 (12 generated)
yunchao
PTAL when you have time. Thanks a lot!
5 years, 7 months ago (2015-05-06 14:06:34 UTC) #5
bajones
Generally looking good, a couple of nits and one bigger request. https://codereview.chromium.org/1120953002/diff/60001/Source/core/html/canvas/WebGL2RenderingContextBase.cpp File Source/core/html/canvas/WebGL2RenderingContextBase.cpp (right): ...
5 years, 7 months ago (2015-05-06 17:47:54 UTC) #6
Ken Russell (switch to Gerrit)
not lgtm I'm sorry, but there are many flaws in this CL and I didn't ...
5 years, 7 months ago (2015-05-06 21:17:34 UTC) #7
yunchao
Thanks for your reviewing, kbr@ and bajones@. I am very sorry that I didn't respond ...
5 years, 7 months ago (2015-05-22 09:54:35 UTC) #9
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1120953002/diff/100001/Source/core/html/canvas/WebGLFramebuffer.h File Source/core/html/canvas/WebGLFramebuffer.h (right): https://codereview.chromium.org/1120953002/diff/100001/Source/core/html/canvas/WebGLFramebuffer.h#newcode132 Source/core/html/canvas/WebGLFramebuffer.h:132: AttachmentMap m_attachmentsForReadFramebuffer; This still doesn't model the OpenGL state ...
5 years, 7 months ago (2015-05-22 21:45:46 UTC) #10
yunchao
Thanks for your explanation, Ken. I have updated the code to resolve the error. PTAL. ...
5 years, 7 months ago (2015-05-25 08:01:19 UTC) #11
yunchao
On 2015/05/25 08:01:19, yunchao wrote: > Thanks for your explanation, Ken. I have updated the ...
5 years, 6 months ago (2015-05-29 10:38:24 UTC) #12
Ken Russell (switch to Gerrit)
There are a couple more issues in this CL, and I'm sorry, I'm debugging a ...
5 years, 6 months ago (2015-06-04 02:45:33 UTC) #13
Zhenyao Mo
As kbr suggested, you really should incorporate the idea of separate DRAW/READ framebuffer in WebGLRenderingContextBase ...
5 years, 6 months ago (2015-06-04 22:08:17 UTC) #14
yunchao
Thanks for your reviewing, zmo@ and kbr@. I have updated the code accordingly. PTAL. Well, ...
5 years, 6 months ago (2015-06-09 10:37:55 UTC) #15
Zhenyao Mo
Much better, but still not 100% correct. https://codereview.chromium.org/1120953002/diff/140001/Source/core/html/canvas/WebGL2RenderingContextBase.cpp File Source/core/html/canvas/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1120953002/diff/140001/Source/core/html/canvas/WebGL2RenderingContextBase.cpp#newcode1577 Source/core/html/canvas/WebGL2RenderingContextBase.cpp:1577: target = ...
5 years, 6 months ago (2015-06-09 20:29:51 UTC) #16
Zhenyao Mo
I don't think you necessarily have to define m_drawFramebufferBinding and m_readFramebufferBinding in the WebGLRenderingContextBase class. ...
5 years, 6 months ago (2015-06-09 20:33:40 UTC) #17
Zhenyao Mo
My apologies, I also got confused. So I spent some time rethinking this, please see ...
5 years, 6 months ago (2015-06-10 05:01:46 UTC) #18
yunchao
Thank you for your careful reviewing, @zmo. The code has been updated accordingly. PTAL. https://codereview.chromium.org/1120953002/diff/140001/Source/core/html/canvas/WebGL2RenderingContextBase.cpp ...
5 years, 6 months ago (2015-06-10 08:21:25 UTC) #19
yunchao
Hi, zmo@. I rethink of the patch to fix WebGL conformance test failures. Please take ...
5 years, 6 months ago (2015-06-10 09:42:30 UTC) #20
Zhenyao Mo
https://codereview.chromium.org/1120953002/diff/180001/Source/core/html/canvas/WebGLRenderingContextBase.cpp File Source/core/html/canvas/WebGLRenderingContextBase.cpp (left): https://codereview.chromium.org/1120953002/diff/180001/Source/core/html/canvas/WebGLRenderingContextBase.cpp#oldcode2063 Source/core/html/canvas/WebGLRenderingContextBase.cpp:2063: case GL_DEPTH_ATTACHMENT: You haven't answered my question: why removing ...
5 years, 6 months ago (2015-06-10 19:35:41 UTC) #21
yunchao
Thanks for your reviewing, zmo@. I have updated the code accordingly. PTAL. https://codereview.chromium.org/1120953002/diff/180001/Source/core/html/canvas/WebGLRenderingContextBase.cpp File Source/core/html/canvas/WebGLRenderingContextBase.cpp ...
5 years, 6 months ago (2015-06-11 09:50:13 UTC) #22
Zhenyao Mo
The code looks fine to me, but before I sign off, I applied your CL ...
5 years, 6 months ago (2015-06-11 17:35:02 UTC) #23
yunchao
On 2015/06/11 17:35:02, Zhenyao Mo wrote: > The code looks fine to me, but before ...
5 years, 6 months ago (2015-06-12 08:52:09 UTC) #24
Zhenyao Mo
I can always reproduce on Mac/Linux, so I think it's everywhere. Maybe you build release ...
5 years, 6 months ago (2015-06-12 17:52:08 UTC) #25
yunchao
On 2015/06/12 17:52:08, Zhenyao Mo wrote: > I can always reproduce on Mac/Linux, so I ...
5 years, 6 months ago (2015-06-16 05:14:53 UTC) #26
Zhenyao Mo
LGTM (Thank you for your persistence) I verified locally on my Linux that no regression ...
5 years, 6 months ago (2015-06-16 21:34:40 UTC) #27
yunchao
On 2015/06/16 21:34:40, Zhenyao Mo wrote: > LGTM (Thank you for your persistence) > > ...
5 years, 6 months ago (2015-06-17 01:15:30 UTC) #28
yunchao
ping... Ken, could you have a look?
5 years, 6 months ago (2015-06-19 08:00:04 UTC) #29
Ken Russell (switch to Gerrit)
Apologies for being slow to re-review. This LGTM in its current form; not necessary to ...
5 years, 6 months ago (2015-06-20 00:08:42 UTC) #30
yunchao
Thanks for your double-check, kbr@. I have updated the code to resolve one problem. I ...
5 years, 6 months ago (2015-06-23 08:54:26 UTC) #32
Ken Russell (switch to Gerrit)
Sounds fine. Let's land this.
5 years, 6 months ago (2015-06-23 22:18:15 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120953002/280001
5 years, 6 months ago (2015-06-23 22:19:33 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60428)
5 years, 6 months ago (2015-06-23 23:42:47 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120953002/280001
5 years, 6 months ago (2015-06-23 23:52:21 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60456)
5 years, 6 months ago (2015-06-24 01:46:33 UTC) #42
Zhenyao Mo
I don't think the failure is related. Landing with NOTRY=true
5 years, 6 months ago (2015-06-24 03:13:40 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120953002/280001
5 years, 6 months ago (2015-06-24 03:13:53 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:280001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197696
5 years, 6 months ago (2015-06-24 03:17:57 UTC) #46
yunchao
5 years, 6 months ago (2015-06-24 04:05:03 UTC) #47
Message was sent while issue was closed.
On 2015/06/24 03:13:40, Zhenyao Mo wrote:
> I don't think the failure is related.  Landing with NOTRY=true

Thank you, zmo@. Yeah, I see several patches also failed on mac_blink_rel, and
other bots are OK.

Powered by Google App Engine
This is Rietveld 408576698