| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 5 #ifndef DEVICE_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
| 6 #define MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 6 #define DEVICE_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "media/capture/content/screen_capture_device_core.h" | 12 #include "device/capture/content/screen_capture_device_core.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 // ScreenCaptureMachineAndroid captures 32bit RGB or YUV420 triplanar. | 16 // ScreenCaptureMachineAndroid captures 32bit RGB or YUV420 triplanar. |
| 17 class MEDIA_EXPORT ScreenCaptureMachineAndroid | 17 class CAPTURE_EXPORT ScreenCaptureMachineAndroid |
| 18 : public media::VideoCaptureMachine { | 18 : public media::VideoCaptureMachine { |
| 19 public: | 19 public: |
| 20 ScreenCaptureMachineAndroid(); | 20 ScreenCaptureMachineAndroid(); |
| 21 ~ScreenCaptureMachineAndroid() override; | 21 ~ScreenCaptureMachineAndroid() override; |
| 22 | 22 |
| 23 static bool RegisterScreenCaptureMachine(JNIEnv* env); | 23 static bool RegisterScreenCaptureMachine(JNIEnv* env); |
| 24 static base::android::ScopedJavaLocalRef<jobject> | 24 static base::android::ScopedJavaLocalRef<jobject> |
| 25 createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid); | 25 createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid); |
| 26 | 26 |
| 27 // Implement org.chromium.media.ScreenCapture.nativeOnRGBAFrameAvailable. | 27 // Implement org.chromium.media.ScreenCapture.nativeOnRGBAFrameAvailable. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 scoped_refptr<VideoFrame> lastFrame_; | 67 scoped_refptr<VideoFrame> lastFrame_; |
| 68 | 68 |
| 69 // Java VideoCaptureAndroid instance. | 69 // Java VideoCaptureAndroid instance. |
| 70 base::android::ScopedJavaLocalRef<jobject> j_capture_; | 70 base::android::ScopedJavaLocalRef<jobject> j_capture_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid); | 72 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace media | 75 } // namespace media |
| 76 | 76 |
| 77 #endif // MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 77 #endif // DEVICE_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
| OLD | NEW |