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

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

Issue 1441363002: Revert of Android MediaCodecVideoDecoder: Manage lifetime of texture frames (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Manual revert. 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 SurfaceTextureHelper(JNIEnv* jni, jobject shared_egl_context); 59 SurfaceTextureHelper(JNIEnv* jni, jobject shared_egl_context);
60 60
61 // Returns the Java SurfaceTextureHelper. 61 // Returns the Java SurfaceTextureHelper.
62 jobject GetJavaSurfaceTextureHelper() const { 62 jobject GetJavaSurfaceTextureHelper() const {
63 return *j_surface_texture_helper_; 63 return *j_surface_texture_helper_;
64 } 64 }
65 65
66 rtc::scoped_refptr<webrtc::VideoFrameBuffer> CreateTextureFrame( 66 rtc::scoped_refptr<webrtc::VideoFrameBuffer> CreateTextureFrame(
67 int width, 67 int width,
68 int height, 68 int height,
69 const NativeHandleImpl& native_handle); 69 const NativeTextureHandleImpl& native_handle);
70 70
71 protected: 71 protected:
72 ~SurfaceTextureHelper(); 72 ~SurfaceTextureHelper();
73 73
74 private: 74 private:
75 // May be called on arbitrary thread. 75 // May be called on arbitrary thread.
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
« no previous file with comments | « talk/app/webrtc/java/jni/peerconnection_jni.cc ('k') | talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698