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

Unified Diff: remoting/client/gl_cursor.h

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/client/gl_cursor.h
diff --git a/remoting/client/gl_cursor.h b/remoting/client/gl_cursor.h
index c0250462cc81aa680189768a991b992a2b3f141f..365b2c23d7bf4242d78cdf295243c0c5fed58067 100644
--- a/remoting/client/gl_cursor.h
+++ b/remoting/client/gl_cursor.h
@@ -30,7 +30,7 @@ class GlCursor {
// Sets the cursor hotspot positions. Does nothing if the cursor shape or the
// canvas size has not been set.
- void SetCursorPosition(int x, int y);
+ void SetCursorPosition(float x, float y);
// Draw() will do nothing if cursor is not visible.
void SetCursorVisible(bool visible);
@@ -56,8 +56,8 @@ class GlCursor {
int current_cursor_hotspot_x_ = 0;
int current_cursor_hotspot_y_ = 0;
- int cursor_x_ = 0;
- int cursor_y_ = 0;
+ float cursor_x_ = 0;
+ float cursor_y_ = 0;
DISALLOW_COPY_AND_ASSIGN(GlCursor);
};

Powered by Google App Engine
This is Rietveld 408576698