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

Issue 2005103004: AVDACodecImages keep their backing SurfaceTexture alive (Closed)

Created:
4 years, 7 months ago by watk
Modified:
4 years, 6 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@neverdetach
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AVDACodecImages keep their backing SurfaceTexture alive Previously, when destructing an AVDA, we had to delete the AVDACodecImages attached to the PictureBuffer textures, and use a fragile method of copying the SurfaceTexture buffer and creating egl images to make sure those PictureBuffer textures didn't become unbacked. Now the AVDACodecImages are kept alive by the Textures they're bound to, and they keep a ref to AVDASharedState which contains the shared SurfaceTexture and its platform texture. The AVDASharedState destructor cleans up the SurfaceTexture and deletes the platform texture. BUG=533630, 614090 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/3e465933721f2732fc422029529b80fc9784e812 Cr-Commit-Position: refs/heads/master@{#398293}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Minor fixes #

Total comments: 8

Patch Set 4 : Comments and add a DCHECK for glGetError after glDelete #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -249 lines) Patch
M media/gpu/android_copying_backing_strategy.cc View 1 1 chunk +2 lines, -17 lines 0 comments Download
M media/gpu/android_deferred_rendering_backing_strategy.cc View 1 2 3 5 chunks +29 lines, -178 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M media/gpu/avda_codec_image.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/avda_codec_image.cc View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M media/gpu/avda_shared_state.h View 1 2 5 chunks +13 lines, -34 lines 0 comments Download
M media/gpu/avda_shared_state.cc View 1 2 3 2 chunks +17 lines, -7 lines 0 comments Download
M media/gpu/avda_state_provider.h View 1 3 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
liberato (no reviews please)
very nice. just a few thoughts. -fl https://codereview.chromium.org/2005103004/diff/1/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2005103004/diff/1/gpu/command_buffer/service/texture_manager.cc#newcode1498 gpu/command_buffer/service/texture_manager.cc:1498: if (image_previously_bound ...
4 years, 6 months ago (2016-05-26 16:59:19 UTC) #3
watk
The TextureManager change is in, so PTAL
4 years, 6 months ago (2016-06-06 21:14:52 UTC) #5
liberato (no reviews please)
lgtm. https://codereview.chromium.org/2005103004/diff/40001/media/gpu/android_deferred_rendering_backing_strategy.cc File media/gpu/android_deferred_rendering_backing_strategy.cc (left): https://codereview.chromium.org/2005103004/diff/40001/media/gpu/android_deferred_rendering_backing_strategy.cc#oldcode338 media/gpu/android_deferred_rendering_backing_strategy.cc:338: void AndroidDeferredRenderingBackingStrategy::CopySurfaceTextureToPictures( yay! https://codereview.chromium.org/2005103004/diff/40001/media/gpu/android_deferred_rendering_backing_strategy.cc File media/gpu/android_deferred_rendering_backing_strategy.cc (right): https://codereview.chromium.org/2005103004/diff/40001/media/gpu/android_deferred_rendering_backing_strategy.cc#newcode53 ...
4 years, 6 months ago (2016-06-06 21:35:55 UTC) #6
watk
Thanks! Just played around with it on JB as well: worked fine. If you're still ...
4 years, 6 months ago (2016-06-07 02:22:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005103004/60001
4 years, 6 months ago (2016-06-07 14:07:05 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-07 14:17:17 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 14:18:33 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3e465933721f2732fc422029529b80fc9784e812
Cr-Commit-Position: refs/heads/master@{#398293}

Powered by Google App Engine
This is Rietveld 408576698