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

Unified Diff: remoting/client/gl_renderer.cc

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_renderer.cc
diff --git a/remoting/client/gl_renderer.cc b/remoting/client/gl_renderer.cc
index 683fda594b28d566138753ffbffa0174f3823cd7..7c2ea9ff7965bc3b40881eb3235f7e9b362626e5 100644
--- a/remoting/client/gl_renderer.cc
+++ b/remoting/client/gl_renderer.cc
@@ -43,13 +43,13 @@ void GlRenderer::OnPixelTransformationChanged(
RequestRender();
}
-void GlRenderer::OnCursorMoved(int x, int y) {
+void GlRenderer::OnCursorMoved(float x, float y) {
DCHECK(thread_checker_.CalledOnValidThread());
cursor_.SetCursorPosition(x, y);
RequestRender();
}
-void GlRenderer::OnCursorInputFeedback(int x, int y, float diameter) {
+void GlRenderer::OnCursorInputFeedback(float x, float y, float diameter) {
DCHECK(thread_checker_.CalledOnValidThread());
cursor_feedback_.StartAnimation(x, y, diameter);
RequestRender();

Powered by Google App Engine
This is Rietveld 408576698