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

Side by Side Diff: webrtc/api/java/jni/androidvideocapturer_jni.h

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing one more place where RTC_FROM_HERE wasn't used. Created 4 years, 6 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 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // To avoid deducing Args from the 3rd parameter of AsyncCapturerInvoke. 61 // To avoid deducing Args from the 3rd parameter of AsyncCapturerInvoke.
62 template <typename T> 62 template <typename T>
63 struct Identity { 63 struct Identity {
64 typedef T type; 64 typedef T type;
65 }; 65 };
66 66
67 // Helper function to make safe asynchronous calls to |capturer_|. The calls 67 // Helper function to make safe asynchronous calls to |capturer_|. The calls
68 // are not guaranteed to be delivered. 68 // are not guaranteed to be delivered.
69 template <typename... Args> 69 template <typename... Args>
70 void AsyncCapturerInvoke( 70 void AsyncCapturerInvoke(
71 const char* method_name, 71 const rtc::Location& posted_from,
72 void (webrtc::AndroidVideoCapturer::*method)(Args...), 72 void (webrtc::AndroidVideoCapturer::*method)(Args...),
73 typename Identity<Args>::type... args); 73 typename Identity<Args>::type... args);
74 74
75 const ScopedGlobalRef<jobject> j_video_capturer_; 75 const ScopedGlobalRef<jobject> j_video_capturer_;
76 const ScopedGlobalRef<jclass> j_video_capturer_class_; 76 const ScopedGlobalRef<jclass> j_video_capturer_class_;
77 const ScopedGlobalRef<jclass> j_observer_class_; 77 const ScopedGlobalRef<jclass> j_observer_class_;
78 78
79 // Used on the Java thread running the camera. 79 // Used on the Java thread running the camera.
80 webrtc::I420BufferPool pre_scale_pool_; 80 webrtc::I420BufferPool pre_scale_pool_;
81 webrtc::I420BufferPool post_scale_pool_; 81 webrtc::I420BufferPool post_scale_pool_;
(...skipping 10 matching lines...) Expand all
92 std::unique_ptr<rtc::GuardedAsyncInvoker> invoker_ GUARDED_BY(capturer_lock_); 92 std::unique_ptr<rtc::GuardedAsyncInvoker> invoker_ GUARDED_BY(capturer_lock_);
93 93
94 static jobject application_context_; 94 static jobject application_context_;
95 95
96 RTC_DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni); 96 RTC_DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni);
97 }; 97 };
98 98
99 } // namespace webrtc_jni 99 } // namespace webrtc_jni
100 100
101 #endif // WEBRTC_API_JAVA_JNI_ANDROIDVIDEOCAPTURER_JNI_H_ 101 #endif // WEBRTC_API_JAVA_JNI_ANDROIDVIDEOCAPTURER_JNI_H_
OLDNEW
« no previous file with comments | « webrtc/api/java/jni/androidnetworkmonitor_jni.cc ('k') | webrtc/api/java/jni/androidvideocapturer_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698