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

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

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: mcasas comments Created 4 years, 2 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_GPUMEMORYBUFFER:
16 // TODO(chfremer): Think about how to implement this.
17 NOTIMPLEMENTED();
18 return std::unique_ptr<media::VideoCaptureBufferTracker>();
19 case media::PIXEL_STORAGE_CPU:
20 return base::MakeUnique<MojoSharedMemoryBufferTracker>();
21 }
22 NOTREACHED();
23 return std::unique_ptr<media::VideoCaptureBufferTracker>();
24 }
25
26 } // namespace video_capture
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698