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

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

Issue 2032963002: WIP - OpenGL Native Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into gl 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
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 package org.chromium.chromoting.jni; 5 package org.chromium.chromoting.jni;
6 6
7 import android.view.Surface; 7 import android.view.Surface;
8 8
9 import org.chromium.base.annotations.CalledByNative; 9 import org.chromium.base.annotations.CalledByNative;
10 import org.chromium.base.annotations.JNINamespace; 10 import org.chromium.base.annotations.JNINamespace;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 */ 81 */
82 public void pixelTransformationChanged(float[] matrix) { 82 public void pixelTransformationChanged(float[] matrix) {
83 if (mNativeJniGlDisplay != 0) { 83 if (mNativeJniGlDisplay != 0) {
84 nativeOnPixelTransformationChanged(mNativeJniGlDisplay, matrix); 84 nativeOnPixelTransformationChanged(mNativeJniGlDisplay, matrix);
85 } 85 }
86 } 86 }
87 87
88 /** 88 /**
89 * Moves the cursor to the corresponding location on the desktop. 89 * Moves the cursor to the corresponding location on the desktop.
90 */ 90 */
91 public void cursorPixelPositionChanged(int x, int y) { 91 public void cursorPixelPositionChanged(int x, int y, boolean followedByViewp ortChange) {
92 if (mNativeJniGlDisplay != 0) { 92 if (mNativeJniGlDisplay != 0) {
93 nativeOnCursorPixelPositionChanged(mNativeJniGlDisplay, x, y); 93 nativeOnCursorPixelPositionChanged(mNativeJniGlDisplay, x, y, follow edByViewportChange);
94 } 94 }
95 } 95 }
96 96
97 /** 97 /**
98 * Decides whether the cursor should be shown on the canvas. 98 * Decides whether the cursor should be shown on the canvas.
99 */ 99 */
100 public void cursorVisibilityChanged(boolean visible) { 100 public void cursorVisibilityChanged(boolean visible) {
101 if (mNativeJniGlDisplay != 0) { 101 if (mNativeJniGlDisplay != 0) {
102 nativeOnCursorVisibilityChanged(mNativeJniGlDisplay, visible); 102 nativeOnCursorVisibilityChanged(mNativeJniGlDisplay, visible);
103 } 103 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return new GlDisplay(nativeDisplayHandler); 174 return new GlDisplay(nativeDisplayHandler);
175 } 175 }
176 176
177 private native void nativeOnSurfaceCreated(long nativeJniGlDisplayHandler, S urface surface); 177 private native void nativeOnSurfaceCreated(long nativeJniGlDisplayHandler, S urface surface);
178 private native void nativeOnSurfaceChanged(long nativeJniGlDisplayHandler, 178 private native void nativeOnSurfaceChanged(long nativeJniGlDisplayHandler,
179 int width, int height); 179 int width, int height);
180 private native void nativeOnSurfaceDestroyed(long nativeJniGlDisplayHandler) ; 180 private native void nativeOnSurfaceDestroyed(long nativeJniGlDisplayHandler) ;
181 private native void nativeOnPixelTransformationChanged(long nativeJniGlDispl ayHandler, 181 private native void nativeOnPixelTransformationChanged(long nativeJniGlDispl ayHandler,
182 float[] matrix); 182 float[] matrix);
183 private native void nativeOnCursorPixelPositionChanged(long nativeJniGlDispl ayHandler, 183 private native void nativeOnCursorPixelPositionChanged(long nativeJniGlDispl ayHandler,
184 int x, int y); 184 int x, int y,
185 boolean followedByVie wportChange);
185 private native void nativeOnCursorInputFeedback(long nativeJniGlDisplayHandl er, 186 private native void nativeOnCursorInputFeedback(long nativeJniGlDisplayHandl er,
186 int x, int y, float diameter ); 187 int x, int y, float diameter );
187 private native void nativeOnCursorVisibilityChanged(long nativeJniGlDisplayH andler, 188 private native void nativeOnCursorVisibilityChanged(long nativeJniGlDisplayH andler,
188 boolean visible); 189 boolean visible);
189 private native void nativeSetRenderEventEnabled(long nativeJniGlDisplayHandl er, 190 private native void nativeSetRenderEventEnabled(long nativeJniGlDisplayHandl er,
190 boolean enabled); 191 boolean enabled);
191 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698