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

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

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
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 #include "media/gpu/content_video_view_overlay_factory.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "media/base/surface_manager.h"
9 #include "media/gpu/content_video_view_overlay.h"
10
11 namespace media {
12
13 ContentVideoViewOverlayFactory::ContentVideoViewOverlayFactory(
14 int32_t surface_id)
15 : surface_id_(surface_id) {
16 DCHECK_NE(surface_id_, SurfaceManager::kNoSurfaceID);
17 }
18
19 ContentVideoViewOverlayFactory::~ContentVideoViewOverlayFactory() {}
20
21 std::unique_ptr<AndroidOverlay> ContentVideoViewOverlayFactory::CreateOverlay(
22 const AndroidOverlay::Config& config) {
23 return base::MakeUnique<ContentVideoViewOverlay>(surface_id_, config);
24 }
25
26 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/content_video_view_overlay_factory.h ('k') | media/gpu/gpu_video_decode_accelerator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698