| OLD | NEW |
| 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 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 5 #ifndef DEVICE_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 6 #define DEVICE_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "media/capture/capture_export.h" | 16 #include "device/capture/capture_export.h" |
| 17 #include "media/capture/video/video_capture_device.h" | 17 #include "device/capture/video/video_capture_device.h" |
| 18 | 18 |
| 19 namespace tracked_objects { | 19 namespace tracked_objects { |
| 20 class Location; | 20 class Location; |
| 21 } // namespace tracked_ | 21 } // namespace tracked_ |
| 22 | 22 |
| 23 namespace media { | 23 namespace media { |
| 24 | 24 |
| 25 // VideoCaptureDevice on Android. The VideoCaptureDevice API's are called | 25 // VideoCaptureDevice on Android. The VideoCaptureDevice API's are called |
| 26 // by VideoCaptureManager on its own thread, while OnFrameAvailable is called | 26 // by VideoCaptureManager on its own thread, while OnFrameAvailable is called |
| 27 // on JAVA thread (i.e., UI thread). Both will access |state_| and |client_|, | 27 // on JAVA thread (i.e., UI thread). Both will access |state_| and |client_|, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 VideoCaptureFormat capture_format_; | 108 VideoCaptureFormat capture_format_; |
| 109 | 109 |
| 110 // Java VideoCaptureAndroid instance. | 110 // Java VideoCaptureAndroid instance. |
| 111 base::android::ScopedJavaLocalRef<jobject> j_capture_; | 111 base::android::ScopedJavaLocalRef<jobject> j_capture_; |
| 112 | 112 |
| 113 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); | 113 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace media | 116 } // namespace media |
| 117 | 117 |
| 118 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 118 #endif // DEVICE_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
| OLD | NEW |