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

Issue 2475133002: Split out AVDA cleanups from SetSurface() change. (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

Split out AVDA cleanups from SetSurface() change. This shifts various pieces of AVDA code around to make it easier to implement MediaCodec.setSurface(). There are no functional changes within this CL, just cleanups and relocations. Namely: - OnFrameAvailableHandler moves into AVDASharedState since we'll change AVDASharedState instances in the future when the surface changes. - The map of codec images is now owned by AVDAPictureBufferManager; consequently, self-registration in the AVDACodecImage is removed. - Elided some methods to remove duplicate internal work. - AVDACodecImages are now held by refptr in AVDAPictureBufferManager since we'll need to call code which would otherwise drop their last ref in the future. BUG=662251 TEST=playback still works. Committed: https://crrev.com/d65783431437f61ed9962c4e6968fce6103ca2e1 Cr-Commit-Position: refs/heads/master@{#430064}

Patch Set 1 : Cleanup. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -185 lines) Patch
M media/gpu/android_video_decode_accelerator.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/gpu/avda_codec_image.h View 2 chunks +1 line, -5 lines 0 comments Download
M media/gpu/avda_codec_image.cc View 4 chunks +8 lines, -19 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.h View 3 chunks +12 lines, -14 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 12 chunks +35 lines, -109 lines 0 comments Download
M media/gpu/avda_shared_state.h View 4 chunks +7 lines, -13 lines 2 comments Download
M media/gpu/avda_shared_state.cc View 3 chunks +51 lines, -24 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (4 generated)
DaleCurtis
This pulls out the relocation/cleanup only pieces from the setSurface CL for easier reviewing.
4 years, 1 month ago (2016-11-04 00:52:55 UTC) #3
liberato (no reviews please)
lgtm. https://codereview.chromium.org/2475133002/diff/20001/media/gpu/avda_shared_state.cc File media/gpu/avda_shared_state.cc (right): https://codereview.chromium.org/2475133002/diff/20001/media/gpu/avda_shared_state.cc#newcode80 media/gpu/avda_shared_state.cc:80: on_frame_available_handler_->ClearListener(); might want to if(on_frame_...) { clearlistener } ...
4 years, 1 month ago (2016-11-04 18:02:14 UTC) #4
DaleCurtis
https://codereview.chromium.org/2475133002/diff/20001/media/gpu/avda_shared_state.cc File media/gpu/avda_shared_state.cc (right): https://codereview.chromium.org/2475133002/diff/20001/media/gpu/avda_shared_state.cc#newcode80 media/gpu/avda_shared_state.cc:80: on_frame_available_handler_->ClearListener(); On 2016/11/04 at 18:02:14, liberato wrote: > might ...
4 years, 1 month ago (2016-11-04 19:42:42 UTC) #5
watk
lgtm
4 years, 1 month ago (2016-11-04 21:06:17 UTC) #6
DaleCurtis
Per watk@, I ran the VDA unittests and it passes \o/ Thanks for review!
4 years, 1 month ago (2016-11-04 21:18:56 UTC) #8
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/2475133002/20001
4 years, 1 month ago (2016-11-04 21:19:55 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 1 month ago (2016-11-04 23:24:09 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 23:27:11 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d65783431437f61ed9962c4e6968fce6103ca2e1
Cr-Commit-Position: refs/heads/master@{#430064}

Powered by Google App Engine
This is Rietveld 408576698