| 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 #include "media/capture/content/android/screen_capture_machine_android.h" | 5 #include "media/capture/content/android/screen_capture_machine_android.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "jni/ScreenCapture_jni.h" | 10 #include "jni/ScreenCapture_jni.h" |
| 11 #include "media/capture/content/video_capture_oracle.h" | 11 #include "media/capture/content/video_capture_oracle.h" |
| 12 #include "third_party/libyuv/include/libyuv.h" | 12 #include "third_party/libyuv/include/libyuv.h" |
| 13 | 13 |
| 14 using base::android::AttachCurrentThread; | 14 using base::android::AttachCurrentThread; |
| 15 using base::android::ScopedJavaLocalRef; |
| 15 | 16 |
| 16 namespace media { | 17 namespace media { |
| 17 | 18 |
| 18 // static | 19 // static |
| 19 bool ScreenCaptureMachineAndroid::RegisterScreenCaptureMachine(JNIEnv* env) { | 20 bool ScreenCaptureMachineAndroid::RegisterScreenCaptureMachine(JNIEnv* env) { |
| 20 return RegisterNativesImpl(env); | 21 return RegisterNativesImpl(env); |
| 21 } | 22 } |
| 22 | 23 |
| 23 ScreenCaptureMachineAndroid::ScreenCaptureMachineAndroid() {} | 24 ScreenCaptureMachineAndroid::ScreenCaptureMachineAndroid() {} |
| 24 | 25 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 frame->visible_data(VideoFrame::kUPlane), | 267 frame->visible_data(VideoFrame::kUPlane), |
| 267 frame->stride(VideoFrame::kUPlane), | 268 frame->stride(VideoFrame::kUPlane), |
| 268 frame->visible_data(VideoFrame::kVPlane), | 269 frame->visible_data(VideoFrame::kVPlane), |
| 269 frame->stride(VideoFrame::kVPlane), frame->visible_rect().width(), | 270 frame->stride(VideoFrame::kVPlane), frame->visible_rect().width(), |
| 270 frame->visible_rect().height(), libyuv::kFilterBilinear); | 271 frame->visible_rect().height(), libyuv::kFilterBilinear); |
| 271 | 272 |
| 272 capture_frame_cb.Run(frame, start_time, true); | 273 capture_frame_cb.Run(frame, start_time, true); |
| 273 } | 274 } |
| 274 | 275 |
| 275 } // namespace media | 276 } // namespace media |
| OLD | NEW |