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

Side by Side Diff: media/capture/content/android/screen_capture_machine_android.h

Issue 2148583003: Minor cleanups in media/s BUILD.gns and media/capture files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_
6 #define MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ 6 #define MEDIA_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 "media/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 ScreenCaptureMachineAndroid : public media::VideoCaptureMachine {
18 : public media::VideoCaptureMachine {
19 public: 18 public:
20 ScreenCaptureMachineAndroid(); 19 ScreenCaptureMachineAndroid();
21 ~ScreenCaptureMachineAndroid() override; 20 ~ScreenCaptureMachineAndroid() override;
22 21
23 static bool RegisterScreenCaptureMachine(JNIEnv* env); 22 static bool RegisterScreenCaptureMachine(JNIEnv* env);
24 static base::android::ScopedJavaLocalRef<jobject> 23 static base::android::ScopedJavaLocalRef<jobject>
25 createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid); 24 createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid);
26 25
27 // Implement org.chromium.media.ScreenCapture.nativeOnRGBAFrameAvailable. 26 // Implement org.chromium.media.ScreenCapture.nativeOnRGBAFrameAvailable.
28 void OnRGBAFrameAvailable(JNIEnv* env, 27 void OnRGBAFrameAvailable(JNIEnv* env,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 67
69 // Java VideoCaptureAndroid instance. 68 // Java VideoCaptureAndroid instance.
70 base::android::ScopedJavaLocalRef<jobject> j_capture_; 69 base::android::ScopedJavaLocalRef<jobject> j_capture_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid); 71 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid);
73 }; 72 };
74 73
75 } // namespace media 74 } // namespace media
76 75
77 #endif // MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ 76 #endif // MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_
OLDNEW
« no previous file with comments | « media/capture/content/android/screen_capture_jni_registrar.h ('k') | media/capture/video/android/photo_capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698