| Index: remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
|
| diff --git a/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java b/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
|
| index 16739441b950bfe51a15de8fd1b8c3df904d10ec..eb5b4020fd6385f3bc2610dc404407d0afa53abe 100644
|
| --- a/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
|
| +++ b/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
|
| @@ -78,6 +78,18 @@ public class DesktopCanvas {
|
| }
|
|
|
| /**
|
| + * Sets the desired center position of the viewport.
|
| + *
|
| + * @param newX The new x coordinate value for the desired center position.
|
| + * @param newY The new y coordinate value for the desired center position.
|
| + */
|
| + public void setViewportPosition(float newX, float newY) {
|
| + synchronized (mRenderData) {
|
| + mViewportPosition.set(newX, newY);
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Returns the current size of the viewport. This size includes the offset calculations for
|
| * any visible system UI.
|
| *
|
|
|