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

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

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: fixed dereference of base::Optional 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
« no previous file with comments | « media/gpu/avda_surface_bundle.cc ('k') | media/gpu/content_video_view_overlay_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
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
« no previous file with comments | « media/gpu/avda_surface_bundle.cc ('k') | media/gpu/content_video_view_overlay_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698