diff options
Diffstat (limited to 'remoting/client/jni/chromoting_jni_runtime.h')
-rw-r--r-- | remoting/client/jni/chromoting_jni_runtime.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/remoting/client/jni/chromoting_jni_runtime.h b/remoting/client/jni/chromoting_jni_runtime.h index bfe8549..93d77bd 100644 --- a/remoting/client/jni/chromoting_jni_runtime.h +++ b/remoting/client/jni/chromoting_jni_runtime.h @@ -8,6 +8,7 @@ #include <jni.h> #include <string> +#include "base/android/scoped_java_ref.h" #include "base/at_exit.h" #include "net/url_request/url_request_context_getter.h" #include "remoting/base/auto_thread.h" @@ -79,8 +80,13 @@ class ChromotingJniRuntime { const std::string& id, const std::string& secret); - // Updates image dimensions and canvas memory space. Call on display thread. - void UpdateImageBuffer(int width, int height, jobject buffer); + // Creates a new Bitmap object to store a video frame. + base::android::ScopedJavaLocalRef<jobject> NewBitmap( + webrtc::DesktopSize size); + + // Updates video frame bitmap. |bitmap| must be an instance of + // android.graphics.Bitmap. Call on the display thread. + void UpdateFrameBitmap(jobject bitmap); // Updates cursor shape. Call on display thread. void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape); |