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

Side by Side Diff: remoting/client/jni/jni_gl_display_handler.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: Merge ToT 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 unified diff | Download patch
« no previous file with comments | « remoting/client/gl_renderer.cc ('k') | remoting/client/jni/jni_gl_display_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ 5 #ifndef REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_
6 #define REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ 6 #define REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_
7 7
8 #include <EGL/egl.h> 8 #include <EGL/egl.h>
9 #include <jni.h> 9 #include <jni.h>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void OnPixelTransformationChanged( 62 void OnPixelTransformationChanged(
63 JNIEnv* env, 63 JNIEnv* env,
64 const base::android::JavaParamRef<jobject>& caller, 64 const base::android::JavaParamRef<jobject>& caller,
65 const base::android::JavaParamRef<jfloatArray>& matrix 65 const base::android::JavaParamRef<jfloatArray>& matrix
66 ); 66 );
67 67
68 void OnCursorPixelPositionChanged( 68 void OnCursorPixelPositionChanged(
69 JNIEnv* env, 69 JNIEnv* env,
70 const base::android::JavaParamRef<jobject>& caller, 70 const base::android::JavaParamRef<jobject>& caller,
71 int x, 71 float x,
72 int y); 72 float y);
73 73
74 void OnCursorVisibilityChanged( 74 void OnCursorVisibilityChanged(
75 JNIEnv* env, 75 JNIEnv* env,
76 const base::android::JavaParamRef<jobject>& caller, 76 const base::android::JavaParamRef<jobject>& caller,
77 bool visible); 77 bool visible);
78 78
79 void OnCursorInputFeedback( 79 void OnCursorInputFeedback(
80 JNIEnv* env, 80 JNIEnv* env,
81 const base::android::JavaParamRef<jobject>& caller, 81 const base::android::JavaParamRef<jobject>& caller,
82 int x, 82 float x,
83 int y, 83 float y,
84 float diameter); 84 float diameter);
85 85
86 private: 86 private:
87 // GlRendererDelegate interface. 87 // GlRendererDelegate interface.
88 bool CanRenderFrame() override; 88 bool CanRenderFrame() override;
89 void OnFrameRendered() override; 89 void OnFrameRendered() override;
90 void OnSizeChanged(int width, int height) override; 90 void OnSizeChanged(int width, int height) override;
91 91
92 // CursorShapeStub interface. 92 // CursorShapeStub interface.
93 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; 93 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override;
(...skipping 26 matching lines...) Expand all
120 120
121 // Used on display thread. 121 // Used on display thread.
122 base::WeakPtr<JniGlDisplayHandler> weak_ptr_; 122 base::WeakPtr<JniGlDisplayHandler> weak_ptr_;
123 base::WeakPtrFactory<JniGlDisplayHandler> weak_factory_; 123 base::WeakPtrFactory<JniGlDisplayHandler> weak_factory_;
124 DISALLOW_COPY_AND_ASSIGN(JniGlDisplayHandler); 124 DISALLOW_COPY_AND_ASSIGN(JniGlDisplayHandler);
125 }; 125 };
126 126
127 } // namespace remoting 127 } // namespace remoting
128 128
129 #endif // REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ 129 #endif // REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/client/gl_renderer.cc ('k') | remoting/client/jni/jni_gl_display_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698