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

Side by Side Diff: services/video_capture/buffer_tracker_factory_impl.cc

Issue 2573223002: [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: mcasas comments Created 3 years, 11 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 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
OLDNEW
« no previous file with comments | « services/video_capture/buffer_tracker_factory_impl.h ('k') | services/video_capture/device_media_to_mojo_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698