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

Side by Side Diff: media/video/capture/android/video_capture_device_android.cc

Issue 91343002: Added supported formats caching to VideoCaptureManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@ nits Created 7 years 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/video/capture/android/video_capture_device_android.h" 5 #include "media/video/capture/android/video_capture_device_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 << name.name() 48 << name.name()
49 << ", unique_id=" 49 << ", unique_id="
50 << name.id() 50 << name.id()
51 << ", orientation " 51 << ", orientation "
52 << Java_ChromiumCameraInfo_getOrientation(env, ci.obj()); 52 << Java_ChromiumCameraInfo_getOrientation(env, ci.obj());
53 } 53 }
54 } 54 }
55 55
56 // static 56 // static
57 void VideoCaptureDevice::GetDeviceSupportedFormats(const Name& device, 57 void VideoCaptureDevice::GetDeviceSupportedFormats(const Name& device,
58 VideoCaptureCapabilities* formats) { 58 VideoCaptureFormats* formats) {
59 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
60 } 60 }
61 61
62 const std::string VideoCaptureDevice::Name::GetModel() const { 62 const std::string VideoCaptureDevice::Name::GetModel() const {
63 // Android cameras are not typically USB devices, and this method is currently 63 // Android cameras are not typically USB devices, and this method is currently
64 // only used for USB model identifiers, so this implementation just indicates 64 // only used for USB model identifiers, so this implementation just indicates
65 // an unknown device model. 65 // an unknown device model.
66 return ""; 66 return "";
67 } 67 }
68 68
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void VideoCaptureDeviceAndroid::SetErrorState(const std::string& reason) { 258 void VideoCaptureDeviceAndroid::SetErrorState(const std::string& reason) {
259 LOG(ERROR) << "VideoCaptureDeviceAndroid::SetErrorState: " << reason; 259 LOG(ERROR) << "VideoCaptureDeviceAndroid::SetErrorState: " << reason;
260 { 260 {
261 base::AutoLock lock(lock_); 261 base::AutoLock lock(lock_);
262 state_ = kError; 262 state_ = kError;
263 } 263 }
264 client_->OnError(); 264 client_->OnError();
265 } 265 }
266 266
267 } // namespace media 267 } // namespace media
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | media/video/capture/fake_video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698