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

Issue 1300573002: WebGL 2: add readPixels API to read pixels into pixel pack buffer (Closed)

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

Description

WebGL 2: add readPixels API to read pixels into pixel pack buffer BUG=295792 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201599

Patch Set 1 : #

Total comments: 4

Patch Set 2 : move the new readPixels to WebGL 2 #

Total comments: 8

Patch Set 3 : addressed zmo@'s feedback #

Patch Set 4 : offset should not be less than 0 #

Total comments: 9

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

Total comments: 1

Patch Set 6 : code refactoring to fix bugs in conformance test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -21 lines) Patch
M Source/modules/webgl/WebGL2RenderingContextBase.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M Source/modules/webgl/WebGL2RenderingContextBase.idl View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/webgl/WebGLBuffer.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/modules/webgl/WebGLBuffer.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 5 3 chunks +32 lines, -1 line 0 comments Download
M Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 4 chunks +32 lines, -20 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
yunchao
This new readPixel API should be only valid in WebGL 2 rendering context. However, seems ...
5 years, 4 months ago (2015-08-17 15:25:14 UTC) #3
Zhenyao Mo
https://codereview.chromium.org/1300573002/diff/20001/Source/modules/webgl/WebGLRenderingContextBase.idl File Source/modules/webgl/WebGLRenderingContextBase.idl (right): https://codereview.chromium.org/1300573002/diff/20001/Source/modules/webgl/WebGLRenderingContextBase.idl#newcode601 Source/modules/webgl/WebGLRenderingContextBase.idl:601: void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, ...
5 years, 4 months ago (2015-08-17 17:02:48 UTC) #4
yunchao
Thanks for your reviewing, zmo@. Please see the comments inline. Thanks a lot! https://codereview.chromium.org/1300573002/diff/20001/Source/modules/webgl/WebGLRenderingContextBase.idl File ...
5 years, 4 months ago (2015-08-18 02:30:00 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1300573002/diff/20001/Source/modules/webgl/WebGLRenderingContextBase.idl File Source/modules/webgl/WebGLRenderingContextBase.idl (right): https://codereview.chromium.org/1300573002/diff/20001/Source/modules/webgl/WebGLRenderingContextBase.idl#newcode601 Source/modules/webgl/WebGLRenderingContextBase.idl:601: void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, ...
5 years, 4 months ago (2015-08-18 02:55:48 UTC) #6
yunchao
Thanks for your reviewing, kbr@ and zmo@. I have resolved the cross-class overloading problem. PTAL. ...
5 years, 4 months ago (2015-08-18 05:35:59 UTC) #8
yunchao
https://codereview.chromium.org/1300573002/diff/60001/Source/modules/webgl/WebGLRenderingContextBase.h File Source/modules/webgl/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/1300573002/diff/60001/Source/modules/webgl/WebGLRenderingContextBase.h#newcode127 Source/modules/webgl/WebGLRenderingContextBase.h:127: class ScopedDrawingBufferBinder { I'd like to move ScopedDrawingBufferBinder from ...
5 years, 4 months ago (2015-08-18 05:40:16 UTC) #9
Zhenyao Mo
Mostly look good, but some extra work is needed. Also, can you add a conformance ...
5 years, 4 months ago (2015-08-18 21:48:39 UTC) #10
yunchao
Thanks for your reviewing, zmo@. The code has been updated accordingly, PTAL. BTW, there is ...
5 years, 4 months ago (2015-08-19 09:33:39 UTC) #14
Zhenyao Mo
LGTM https://codereview.chromium.org/1300573002/diff/180001/Source/modules/webgl/WebGL2RenderingContextBase.cpp File Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1300573002/diff/180001/Source/modules/webgl/WebGL2RenderingContextBase.cpp#newcode276 Source/modules/webgl/WebGL2RenderingContextBase.cpp:276: long long size = buffer->getSize() - offset; nit: ...
5 years, 4 months ago (2015-08-19 17:20:23 UTC) #16
Ken Russell (switch to Gerrit)
Thanks for this contribution and thanks Mo for doing the first round of reviews. LGTM ...
5 years, 4 months ago (2015-08-19 23:42:52 UTC) #17
yunchao
Thanks for your reviews, zmo@ and kbr@. zmo@, seems that there is a small question, ...
5 years, 4 months ago (2015-08-20 08:16:39 UTC) #18
Zhenyao Mo
LGTM again https://codereview.chromium.org/1300573002/diff/180001/Source/modules/webgl/WebGLRenderingContextBase.cpp File Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1300573002/diff/180001/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode3745 Source/modules/webgl/WebGLRenderingContextBase.cpp:3745: WebGLFramebuffer* readFramebufferBinding = getFramebufferBinding(target); On 2015/08/20 08:16:39, ...
5 years, 4 months ago (2015-08-20 17:27:34 UTC) #19
Ken Russell (switch to Gerrit)
To be clear, you don't need to wait for my re-review. Mo, thanks for doing ...
5 years, 4 months ago (2015-08-25 02:06:55 UTC) #20
yunchao
On 2015/08/25 02:06:55, Ken Russell wrote: > To be clear, you don't need to wait ...
5 years, 3 months ago (2015-08-26 14:44:09 UTC) #21
yunchao
A simple code refactoring to fix bugs. PTAL. Thanks! https://codereview.chromium.org/1300573002/diff/200001/Source/modules/webgl/WebGLRenderingContextBase.cpp File Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1300573002/diff/200001/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode3762 Source/modules/webgl/WebGLRenderingContextBase.cpp:3762: ...
5 years, 3 months ago (2015-09-01 02:49:57 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300573002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300573002/240001
5 years, 3 months ago (2015-09-01 05:01:11 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-01 06:22:52 UTC) #27
Zhenyao Mo
On 2015/09/01 06:22:52, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 3 months ago (2015-09-01 19:42:41 UTC) #28
Ken Russell (switch to Gerrit)
LGTM again too. Thanks for following through on this.
5 years, 3 months ago (2015-09-01 20:58:14 UTC) #29
yunchao
On 2015/09/01 20:58:14, Ken Russell wrote: > LGTM again too. Thanks for following through on ...
5 years, 3 months ago (2015-09-02 01:56:56 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300573002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300573002/240001
5 years, 3 months ago (2015-09-02 02:32:26 UTC) #32
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 02:37:02 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201599

Powered by Google App Engine
This is Rietveld 408576698