| Index: remoting/client/jni/chromoting_jni_instance.cc
|
| diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
|
| index 5eef55a9fbe24c471797a5353758280c7c510e6c..28822f6654f78469327c31adad6a3b1710c64b91 100644
|
| --- a/remoting/client/jni/chromoting_jni_instance.cc
|
| +++ b/remoting/client/jni/chromoting_jni_instance.cc
|
| @@ -216,7 +216,14 @@ void ChromotingJniInstance::InjectClipboardEvent(
|
|
|
| void ChromotingJniInstance::SetCursorShape(
|
| const protocol::CursorShapeInfo& shape) {
|
| - NOTIMPLEMENTED();
|
| + if (!jni_runtime_->display_task_runner()->BelongsToCurrentThread()) {
|
| + jni_runtime_->display_task_runner()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&ChromotingJniInstance::SetCursorShape, this, shape));
|
| + return;
|
| + }
|
| +
|
| + jni_runtime_->UpdateCursorShape(shape);
|
| }
|
|
|
| void ChromotingJniInstance::ConnectToHostOnDisplayThread() {
|
|
|