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

Issue 1320093002: Command Buffer: read pixels into pixel pack buffer (Closed)

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

Description

Command Buffer: read pixels into pixel pack buffer TEST=conformance2/reading/read-pixels-into-pixel-pack-buffer.html, gpu_unittests BUG=429053 Committed: https://crrev.com/0b1fc5d170a52839cd7cdba069c3b79bc0a4aa21 Cr-Commit-Position: refs/heads/master@{#365989}

Patch Set 1 #

Patch Set 2 : run the existed validation for format and type #

Patch Set 3 : add unittests #

Total comments: 2

Patch Set 4 : addressed the feedback from zmo@ and piman@, rebased the code #

Patch Set 5 : more unittests #

Total comments: 6

Patch Set 6 : addressed zmo@'s feedback #

Patch Set 7 : get correct pixel size #

Total comments: 12

Patch Set 8 : addressed zmo@'s feedback #

Total comments: 4

Patch Set 9 : addressed zmo@'s feedback: should use different functions to get pixels size #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -25 lines) Patch
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 3 chunks +67 lines, -21 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 3 4 5 6 7 1 chunk +148 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (13 generated)
yunchao
PTAL, Thanks a lot!
5 years ago (2015-12-01 03:19:37 UTC) #7
Zhenyao Mo
https://chromiumcodereview.appspot.com/1320093002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://chromiumcodereview.appspot.com/1320093002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8870 gpu/command_buffer/service/gles2_cmd_decoder.cc:8870: pixels = reinterpret_cast<void *>(c.pixels_shm_offset); We probably want to perform ...
5 years ago (2015-12-02 00:25:52 UTC) #8
piman
On 2015/12/02 00:25:52, Zhenyao Mo wrote: > https://chromiumcodereview.appspot.com/1320093002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://chromiumcodereview.appspot.com/1320093002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8870 ...
5 years ago (2015-12-02 00:33:27 UTC) #9
Zhenyao Mo
Yunchao, note that I am landing this CL: https://codereview.chromium.org/1474513003/ You probably want to rebase your ...
5 years ago (2015-12-02 01:18:56 UTC) #10
yunchao
On 2015/12/02 01:18:56, Zhenyao Mo wrote: > Yunchao, note that I am landing this CL: ...
5 years ago (2015-12-02 01:42:19 UTC) #11
yunchao
Thanks Zhenyao and piman. Your feedback are addressed. PTAL when you have time. Thanks a ...
5 years ago (2015-12-02 09:36:55 UTC) #12
Zhenyao Mo
Mostly look good, but I will ask this CL to wait as I explained. piman: ...
5 years ago (2015-12-02 19:36:41 UTC) #13
Zhenyao Mo
On 2015/12/02 19:36:41, Zhenyao Mo wrote: > Mostly look good, but I will ask this ...
5 years ago (2015-12-02 21:19:30 UTC) #14
Zhenyao Mo
On 2015/12/02 21:19:30, Zhenyao Mo wrote: > On 2015/12/02 19:36:41, Zhenyao Mo wrote: > > ...
5 years ago (2015-12-02 21:20:50 UTC) #15
yunchao
Thank you, Zhenayao and piman. Code has been updated accordingly. PTAL if necessary... When you ...
5 years ago (2015-12-03 17:39:14 UTC) #16
yunchao
On 2015/12/02 21:20:50, Zhenyao Mo wrote: > On 2015/12/02 21:19:30, Zhenyao Mo wrote: > > ...
5 years ago (2015-12-03 17:41:41 UTC) #17
Zhenyao Mo
Yunchao, now https://codereview.chromium.org/1508953002/ landed and you can finish this CL. You can do GLES2Util::ComputeImageDataSizeES3(..., state_.GetPackParams(), ...
5 years ago (2015-12-09 17:38:42 UTC) #18
yunchao
On 2015/12/09 17:38:42, Zhenyao Mo wrote: > Yunchao, now https://codereview.chromium.org/1508953002/ landed and you can > ...
5 years ago (2015-12-11 16:10:55 UTC) #19
yunchao
On 2015/12/09 17:38:42, Zhenyao Mo wrote: > Yunchao, now https://codereview.chromium.org/1508953002/ landed and you can > ...
5 years ago (2015-12-15 09:05:43 UTC) #20
Zhenyao Mo
https://codereview.chromium.org/1320093002/diff/180001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1320093002/diff/180001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9180 gpu/command_buffer/service/gles2_cmd_decoder.cc:9180: width, height, 1, format, type, params, &pixels_size, NULL, NULL, ...
5 years ago (2015-12-15 23:50:56 UTC) #21
Zhenyao Mo
Also, please fix the compile failure on some bots (due to unsigned/signed comparison)
5 years ago (2015-12-15 23:51:31 UTC) #22
yunchao
Thanks for your review, Zhenyao. The code has been updated accordingly, PTAL. https://codereview.chromium.org/1320093002/diff/180001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc ...
5 years ago (2015-12-16 11:04:25 UTC) #25
Zhenyao Mo
LGTM with one minor issue fixed. https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9199 gpu/command_buffer/service/gles2_cmd_decoder.cc:9199: if (buffer->size() < ...
5 years ago (2015-12-16 18:12:34 UTC) #26
Zhenyao Mo
https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9179 gpu/command_buffer/service/gles2_cmd_decoder.cc:9179: if (!GLES2Util::ComputeImageDataSizesES3(width, height, 1, format, type, Sorry just realized ...
5 years ago (2015-12-16 23:09:21 UTC) #27
yunchao
On 2015/12/16 23:09:21, Zhenyao Mo wrote: > https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/1320093002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9179 ...
5 years ago (2015-12-17 00:11:16 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320093002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320093002/260001
5 years ago (2015-12-17 06:40:56 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 07:43:45 UTC) #32
yunchao
Code has been updated. I also add your comments into the code snippet. Please have ...
5 years ago (2015-12-17 08:12:59 UTC) #33
Zhenyao Mo
lgtm
5 years ago (2015-12-17 18:34:18 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320093002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320093002/260001
5 years ago (2015-12-18 02:16:59 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:260001)
5 years ago (2015-12-18 02:24:30 UTC) #38
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/0b1fc5d170a52839cd7cdba069c3b79bc0a4aa21 Cr-Commit-Position: refs/heads/master@{#365989}
5 years ago (2015-12-18 02:25:21 UTC) #40
Jamie Madill
A revert of this CL (patchset #9 id:260001) has been created in https://codereview.chromium.org/1540553003/ by jmadill@chromium.org. ...
5 years ago (2015-12-18 15:06:29 UTC) #41
Zhenyao Mo
On 2015/12/18 15:06:29, Jamie Madill wrote: > A revert of this CL (patchset #9 id:260001) ...
5 years ago (2015-12-18 19:10:17 UTC) #42
yunchao
On 2015/12/18 19:10:17, Zhenyao Mo wrote: > On 2015/12/18 15:06:29, Jamie Madill wrote: > > ...
5 years ago (2015-12-21 02:19:32 UTC) #43
Zhenyao Mo
5 years ago (2015-12-21 17:18:37 UTC) #44
Message was sent while issue was closed.
On 2015/12/21 02:19:32, yunchao wrote:
> On 2015/12/18 19:10:17, Zhenyao Mo wrote:
> > On 2015/12/18 15:06:29, Jamie Madill wrote:
> > > A revert of this CL (patchset #9 id:260001) has been created in
> > > https://codereview.chromium.org/1540553003/ by
mailto:jmadill@chromium.org.
> > > 
> > > The reason for reverting is: Causes a timeout in Windows Debug, possibly
an
> > > ASSERT:
> > > 
> > >
> >
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Win7%20Debug%20%28NVIDI...
> > > 
> > > WebglConformance.conformance2_reading_read_pixels_into_pixel_pack_buffer
> times
> > > out
> > > .
> > 
> > I verified on Linux Debug.  There is no crash.  We do have a failure but
it's
> > expected.
> > 
> > I guess this indicates a bug in ANGLE.  I'll reland this CL and suppress the
> > test on Win Debug.
> 
> I found that you have re-landed this one, Zhenyao. Thank you. BTW, do you have
> time to write the patch which handle the pixels outside of the image when
> reading pixels into PIXEL_PACK buffer? I saw you discussed this situation and
> sent a pull request to khronos webgl spec & conformance project about
> reading/copying pixels outside of image. Recently I am fixing the bugs in
> negative*api.html in WebGL deqp tests, I want to finish that work first.

Sure.  I'll take this task.

Powered by Google App Engine
This is Rietveld 408576698