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

Issue 2811693005: Handle pixel (un)pack buffers with non-zero offset. (Closed)

Created:
3 years, 8 months ago by Corentin Wallez
Modified:
3 years, 8 months ago
Reviewers:
Zhenyao Mo, Geoff Lang
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle pixel (un)pack buffers with non-zero offset. The passthrough command buffer (Compressed)Tex(Sub)Image and ReadPixels handlers didn't handle the case where shm_id == 0 but shm_offset != 0 which can happen when a PBO is bound. This patch also adds a dataSize argument to the CompressedTex(Sub)Image doers that will be needed to have a robust version of them when "data" can be an offset in a PBO. BUG=chromium:602688 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2811693005 Cr-Commit-Position: refs/heads/master@{#464137} Committed: https://chromium.googlesource.com/chromium/src/+/95f938225bec04fe8e3d87bcc692f67c6388cf06

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -77 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototypes.h View 1 4 chunks +8 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc View 1 4 chunks +20 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc View 13 chunks +111 lines, -65 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Corentin Wallez
PTAL, fixes some contexts lost in the WebGL 2 CTS with the passthrough cmd decoder.
3 years, 8 months ago (2017-04-11 19:10:12 UTC) #3
Zhenyao Mo
lgtm with a few nits https://codereview.chromium.org/2811693005/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc File gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc (right): https://codereview.chromium.org/2811693005/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc#newcode470 gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:470: GLsizei dataSize, nit: this ...
3 years, 8 months ago (2017-04-11 19:56:54 UTC) #6
Corentin Wallez
https://codereview.chromium.org/2811693005/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc File gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc (right): https://codereview.chromium.org/2811693005/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc#newcode470 gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:470: GLsizei dataSize, On 2017/04/11 at 19:56:54, Zhenyao Mo wrote: ...
3 years, 8 months ago (2017-04-11 22:06:34 UTC) #9
Corentin Wallez
Thanks for the review!
3 years, 8 months ago (2017-04-12 17:40:02 UTC) #11
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/2811693005/20001
3 years, 8 months ago (2017-04-12 17:40:59 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 20:39:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/95f938225bec04fe8e3d87bcc692...

Powered by Google App Engine
This is Rietveld 408576698