OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 "services/video_capture/buffer_tracker_factory_impl.h" | |
6 | |
7 #include "base/memory/ptr_util.h" | |
8 #include "services/video_capture/mojo_shared_memory_buffer_tracker.h" | |
9 | |
10 namespace video_capture { | |
11 | |
12 std::unique_ptr<media::VideoCaptureBufferTracker> | |
13 BufferTrackerFactoryImpl::CreateTracker(media::VideoPixelStorage storage) { | |
14 switch (storage) { | |
15 case media::PIXEL_STORAGE_CPU: | |
16 return base::MakeUnique<MojoSharedMemoryBufferTracker>(); | |
17 } | |
18 NOTREACHED(); | |
19 return std::unique_ptr<media::VideoCaptureBufferTracker>(); | |
20 } | |
21 | |
22 } // namespace video_capture | |
OLD | NEW |