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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 #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
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
OLDNEW
« no previous file with comments | « media/base/android/media_player_listener.cc ('k') | media/capture/video/android/video_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698