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

Side by Side Diff: talk/app/webrtc/java/jni/surfacetexturehelper_jni.h

Issue 1418913006: common_video: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 1 month 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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 17 matching lines...) Expand all
28 28
29 #ifndef TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_ 29 #ifndef TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_
30 #define TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_ 30 #define TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_
31 31
32 #include <jni.h> 32 #include <jni.h>
33 33
34 #include "talk/app/webrtc/java/jni/jni_helpers.h" 34 #include "talk/app/webrtc/java/jni/jni_helpers.h"
35 #include "talk/app/webrtc/java/jni/native_handle_impl.h" 35 #include "talk/app/webrtc/java/jni/native_handle_impl.h"
36 #include "webrtc/base/refcount.h" 36 #include "webrtc/base/refcount.h"
37 #include "webrtc/base/scoped_ref_ptr.h" 37 #include "webrtc/base/scoped_ref_ptr.h"
38 #include "webrtc/common_video/interface/video_frame_buffer.h" 38 #include "webrtc/common_video/include/video_frame_buffer.h"
39 39
40 namespace webrtc_jni { 40 namespace webrtc_jni {
41 41
42 // Helper class to create and synchronize access to an Android SurfaceTexture. 42 // Helper class to create and synchronize access to an Android SurfaceTexture.
43 // It is used for creating webrtc::VideoFrameBuffers from a SurfaceTexture when 43 // It is used for creating webrtc::VideoFrameBuffers from a SurfaceTexture when
44 // the SurfaceTexture has been updated. 44 // the SurfaceTexture has been updated.
45 // When the VideoFrameBuffer is released, this class returns the buffer to the 45 // When the VideoFrameBuffer is released, this class returns the buffer to the
46 // java SurfaceTextureHelper so it can be updated safely. The VideoFrameBuffer 46 // java SurfaceTextureHelper so it can be updated safely. The VideoFrameBuffer
47 // can be released on an arbitrary thread. 47 // can be released on an arbitrary thread.
48 // SurfaceTextureHelper is reference counted to make sure that it is not 48 // SurfaceTextureHelper is reference counted to make sure that it is not
(...skipping 27 matching lines...) Expand all
76 void ReturnTextureFrame() const; 76 void ReturnTextureFrame() const;
77 77
78 const ScopedGlobalRef<jclass> j_surface_texture_helper_class_; 78 const ScopedGlobalRef<jclass> j_surface_texture_helper_class_;
79 const ScopedGlobalRef<jobject> j_surface_texture_helper_; 79 const ScopedGlobalRef<jobject> j_surface_texture_helper_;
80 const jmethodID j_return_texture_method_; 80 const jmethodID j_return_texture_method_;
81 }; 81 };
82 82
83 } // namespace webrtc_jni 83 } // namespace webrtc_jni
84 84
85 #endif // TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_ 85 #endif // TALK_APP_WEBRTC_JAVA_JNI_SURFACETEXTUREHELPER_JNI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698