Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1291)

Unified Diff: remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java

Issue 2255663002: [Remoting Android] Use floating point coords for rendering the cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java b/remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java
index bede3da2a7b3cd03a6f07cebaf52ba9fe615617d..30e383c13ac5169c2b0cc30a363af3eafde6a22c 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java
@@ -86,7 +86,7 @@ public class GlDisplay {
}
/** Moves the cursor to the corresponding location on the desktop. */
- public void cursorPixelPositionChanged(int x, int y) {
+ public void cursorPixelPositionChanged(float x, float y) {
if (mNativeJniGlDisplay != 0) {
nativeOnCursorPixelPositionChanged(mNativeJniGlDisplay, x, y);
}
@@ -140,7 +140,7 @@ public class GlDisplay {
* Shows the cursor input feedback animation with the given diameter at the given desktop
* location.
*/
- public void showCursorInputFeedback(int x, int y, float diameter) {
+ public void showCursorInputFeedback(float x, float y, float diameter) {
if (mNativeJniGlDisplay != 0) {
nativeOnCursorInputFeedback(mNativeJniGlDisplay, x, y, diameter);
}
@@ -168,9 +168,9 @@ public class GlDisplay {
private native void nativeOnPixelTransformationChanged(long nativeJniGlDisplayHandler,
float[] matrix);
private native void nativeOnCursorPixelPositionChanged(long nativeJniGlDisplayHandler,
- int x, int y);
+ float x, float y);
private native void nativeOnCursorInputFeedback(long nativeJniGlDisplayHandler,
- int x, int y, float diameter);
+ float x, float y, float diameter);
private native void nativeOnCursorVisibilityChanged(long nativeJniGlDisplayHandler,
boolean visible);
}

Powered by Google App Engine
This is Rietveld 408576698