| 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 b0e9d31f33eb571c0bf63ab786d53308a95163ad..76b5a24e0adfefbfab50fa02715b43594677f807 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.
|
| *
|
|
|