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