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

Issue 2481943003: Enforce no uncleared OES external textures. Clear in AVDA, not GVD. (Closed)

Created:
4 years, 1 month ago by DaleCurtis
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enforce no uncleared OES external textures. Clear in AVDA, not GVD. A few of us on the team have been bitten by the fact that GVD is the one clearing textures instead of AVDA when it comes to OES external textures. Lets save a few hours of debugging for someone in the future. OES external textures are now always pre-cleared by AVDA (the only VDA using these) and checked by GpuVideoDecoder. Instead of an opaque GL_INVALID_ENUM error in GLES2DecoderImpl::PrepareTexturesForRender() a DCHECK will now fire in ClearLevel() indicating the exact problem. BUG=662251 TEST=implement fancy new feature, notice there are no holes in foot. CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/d3704fcabb140cd633890479194658742863c881 Cr-Commit-Position: refs/heads/master@{#431064}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment. #

Patch Set 3 : Fix mismerge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (15 generated)
DaleCurtis
Found while implementing surface changes for Android MediaCodec: https://codereview.chromium.org/2461073002 Thanks watk@ for the solution.
4 years, 1 month ago (2016-11-08 00:59:42 UTC) #3
sandersd (OOO until July 31)
lgtm. I would like someone to double-check whether the concept of clearing makes sense when ...
4 years, 1 month ago (2016-11-08 01:05:44 UTC) #4
DaleCurtis
https://codereview.chromium.org/2481943003/diff/1/media/gpu/ipc/service/gpu_video_decode_accelerator.cc File media/gpu/ipc/service/gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2481943003/diff/1/media/gpu/ipc/service/gpu_video_decode_accelerator.cc#newcode523 media/gpu/ipc/service/gpu_video_decode_accelerator.cc:523: // OES textures are a special case and expected ...
4 years, 1 month ago (2016-11-08 01:08:08 UTC) #7
DaleCurtis
piman: ping for gpu/ changes.
4 years, 1 month ago (2016-11-09 00:28:06 UTC) #16
piman
lgtm
4 years, 1 month ago (2016-11-09 16:27:44 UTC) #17
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/2481943003/40001
4 years, 1 month ago (2016-11-09 20:04:50 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 22:44:45 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 22:58:28 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d3704fcabb140cd633890479194658742863c881
Cr-Commit-Position: refs/heads/master@{#431064}

Powered by Google App Engine
This is Rietveld 408576698