| OLD | NEW |
| (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 | |
| OLD | NEW |