| Index: remoting/client/jni/chromoting_jni_runtime.h
|
| diff --git a/remoting/client/jni/chromoting_jni_runtime.h b/remoting/client/jni/chromoting_jni_runtime.h
|
| index bfe85492a6b62e995f80d418d9523ebde6d1bb17..93d77bdae69c081f27cc825f289546c9ae24853e 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);
|
|
|