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

Issue 2856253004: removed AndroidOverlayFactory (Closed)

Created:
3 years, 7 months ago by liberato (no reviews please)
Modified:
3 years, 6 months ago
Reviewers:
watk, tguilbert, xhwang
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, posciak+watch_chromium.org, viettrungluu+watch_chromium.org, avayvod+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, alokp+watch_chromium.org, piman+watch_chromium.org, darin (slow to review), mlamouri+watch-media_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove AndroidOverlayFactory AndroidOverlayFactory is replaced with a callback. This simplifies it. Also, it makes plumbing a mojo factory callback from the GPU service much easier. The factory type, AndroidOverlayFactoryCB can be compiled on any platform, to prevent a lot of #ifdef's later. As part of this, the base::Callback instances are replaced with RepeatingCallbacks or OnceCallbacks, as appropriate. BUG=718577 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/2856253004 Cr-Commit-Position: refs/heads/master@{#469742} Committed: https://chromium.googlesource.com/chromium/src/+/c9baea5c9d9d2b658d91c48b053ddde9bf9df7b7

Patch Set 1 #

Patch Set 2 : made callbacks OnceCallback #

Patch Set 3 : removed android_overlay_factory from BUILD.gn #

Patch Set 4 : removed some java refs #

Total comments: 10

Patch Set 5 : cl feedvback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -349 lines) Patch
M media/base/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/android/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/android_overlay.h View 1 2 chunks +1 line, -28 lines 0 comments Download
M media/base/android/android_overlay.cc View 1 chunk +0 lines, -4 lines 0 comments Download
D media/base/android/android_overlay_factory.h View 1 chunk +0 lines, -28 lines 0 comments Download
M media/base/android/mock_android_overlay.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/android/mock_android_overlay.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
A media/base/android_overlay_config.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A media/base/android_overlay_config.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
A media/base/android_overlay_mojo_factory.h View 1 2 3 1 chunk +20 lines, -0 lines 2 comments Download
M media/gpu/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 4 chunks +12 lines, -8 lines 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 2 3 4 9 chunks +16 lines, -18 lines 0 comments Download
M media/gpu/android_video_surface_chooser.h View 1 2 chunks +14 lines, -15 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl.h View 3 chunks +6 lines, -9 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl_unittest.cc View 1 15 chunks +72 lines, -81 lines 0 comments Download
M media/gpu/content_video_view_overlay.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/gpu/content_video_view_overlay.cc View 1 3 chunks +7 lines, -8 lines 0 comments Download
D media/gpu/content_video_view_overlay_factory.h View 1 chunk +0 lines, -31 lines 0 comments Download
D media/gpu/content_video_view_overlay_factory.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M media/mojo/clients/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
D media/mojo/clients/mojo_android_overlay_factory.h View 1 chunk +0 lines, -41 lines 0 comments Download
D media/mojo/clients/mojo_android_overlay_factory.cc View 1 chunk +0 lines, -24 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
liberato (no reviews please)
turns out that it's really hard to plumb the mojo stuff from gpu_service without doing ...
3 years, 7 months ago (2017-05-04 20:51:45 UTC) #9
tguilbert
LGTM % nits https://codereview.chromium.org/2856253004/diff/60001/media/base/android_overlay_config.h File media/base/android_overlay_config.h (right): https://codereview.chromium.org/2856253004/diff/60001/media/base/android_overlay_config.h#newcode36 media/base/android_overlay_config.h:36: gfx::Rect rect; NIT: can you add ...
3 years, 7 months ago (2017-05-04 21:52:05 UTC) #15
watk
On 2017/05/04 21:52:05, tguilbert wrote: > LGTM % nits > > https://codereview.chromium.org/2856253004/diff/60001/media/base/android_overlay_config.h > File media/base/android_overlay_config.h ...
3 years, 7 months ago (2017-05-04 22:03:09 UTC) #16
liberato (no reviews please)
thanks for the feedback. as an aside, when i removed is_null() i forgot to remove ...
3 years, 7 months ago (2017-05-05 16:50:23 UTC) #21
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/2856253004/80001
3 years, 7 months ago (2017-05-05 18:53:42 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/c9baea5c9d9d2b658d91c48b053ddde9bf9df7b7
3 years, 7 months ago (2017-05-05 18:59:20 UTC) #29
xhwang
https://codereview.chromium.org/2856253004/diff/80001/media/base/android_overlay_mojo_factory.h File media/base/android_overlay_mojo_factory.h (right): https://codereview.chromium.org/2856253004/diff/80001/media/base/android_overlay_mojo_factory.h#newcode16 media/base/android_overlay_mojo_factory.h:16: AndroidOverlay>(base::UnguessableToken&, const AndroidOverlayConfig&)> ISTM this file lives in media/base ...
3 years, 6 months ago (2017-06-01 05:50:59 UTC) #31
liberato (no reviews please)
3 years, 6 months ago (2017-06-01 06:07:55 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/2856253004/diff/80001/media/base/android_over...
File media/base/android_overlay_mojo_factory.h (right):

https://codereview.chromium.org/2856253004/diff/80001/media/base/android_over...
media/base/android_overlay_mojo_factory.h:16:
AndroidOverlay>(base::UnguessableToken&, const AndroidOverlayConfig&)>
On 2017/06/01 05:50:59, xhwang wrote:
> ISTM this file lives in media/base and this callback has nothing to do with
> mojo. I wonder why we use "mojo" in the file/callback name? :)

good point.

the need for a base::UnguessableToken is specific to the mojo implementation of
the AO api.  it identifies the render frame that owns the overlay.  that's the
only connection.

i'm not sure if it could be moved under media/mojo, or if there's a build rule
that prevented it.  i'll give it a try.

Powered by Google App Engine
This is Rietveld 408576698