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

Side by Side Diff: media/gpu/content_video_view_overlay_factory.h

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: fixed AVDAManager comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
6 #define MEDIA_GPU_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
7
8 #include "media/base/android/android_overlay_factory.h"
9
10 namespace media {
11
12 // Factory for CVV-based overlays. One needs this only to hide the factory
13 // impl from AVDA.
14 class ContentVideoViewOverlayFactory : public AndroidOverlayFactory {
watk 2017/05/02 21:00:01 I may be missing something, but it looks like this
liberato (no reviews please) 2017/05/02 21:50:05 per offline discussion, this is an interesting ide
15 public:
16 // |surface_id| must not be kNoSurfaceID.
17 ContentVideoViewOverlayFactory(int32_t surface_id);
18 ~ContentVideoViewOverlayFactory() override;
19
20 std::unique_ptr<AndroidOverlay> CreateOverlay(
21 const AndroidOverlay::Config& config) override;
22
23 private:
24 int32_t surface_id_;
25
26 DISALLOW_COPY_AND_ASSIGN(ContentVideoViewOverlayFactory);
27 };
28
29 } // namespace media
30
31 #endif // MEDIA_GPU_ANDROID_CONTENT_VIDEO_VIEW_OVERLAY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698