mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Rename pauseCompositor/resumeCompositor in JNIServo (#41827)
pauseCompositor/resumeCompositor have been renamed
topausePainting/resumePainting in 824f551. This renames the Java methods
to fix the regression.
Testing: Built servoview.aar and tested in Android app.
Fixes #41826
Signed-off-by: Niklas Merz <niklasmerz@apache.org>
This commit is contained in:
@@ -62,8 +62,8 @@ public class JNIServo {
|
||||
|
||||
public native void click(float x, float y);
|
||||
|
||||
public native void pauseCompositor();
|
||||
public native void resumeCompositor(Surface surface, ServoCoordinates coords);
|
||||
public native void pausePainting();
|
||||
public native void resumePainting(Surface surface, ServoCoordinates coords);
|
||||
|
||||
public native void mediaSessionAction(int action);
|
||||
|
||||
|
||||
@@ -121,11 +121,11 @@ public class Servo {
|
||||
mRunCallback.inGLThread(() -> mJNI.click(x, y));
|
||||
}
|
||||
|
||||
public void pauseCompositor() {
|
||||
mRunCallback.inGLThread(() -> mJNI.pauseCompositor());
|
||||
public void pausePainting() {
|
||||
mRunCallback.inGLThread(() -> mJNI.pausePainting());
|
||||
}
|
||||
public void resumeCompositor(Surface surface, ServoCoordinates coords) {
|
||||
mRunCallback.inGLThread(() -> mJNI.resumeCompositor(surface, coords));
|
||||
public void resumePainting(Surface surface, ServoCoordinates coords) {
|
||||
mRunCallback.inGLThread(() -> mJNI.resumePainting(surface, coords));
|
||||
}
|
||||
|
||||
public void suspend(boolean suspended) {
|
||||
|
||||
@@ -241,7 +241,7 @@ public class ServoView extends SurfaceView
|
||||
options, mServoView, mServoView, mClient, mActivity, surface);
|
||||
} else {
|
||||
mPaused = false;
|
||||
mServoView.mServo.resumeCompositor(surface, coords);
|
||||
mServoView.mServo.resumePainting(surface, coords);
|
||||
}
|
||||
|
||||
Choreographer.getInstance().postFrameCallback(mServoView);
|
||||
@@ -259,7 +259,7 @@ public class ServoView extends SurfaceView
|
||||
public void surfaceDestroyed(SurfaceHolder holder) {
|
||||
Log.d(LOGTAG, "GLThread::surfaceDestroyed");
|
||||
mPaused = true;
|
||||
mServoView.mServo.pauseCompositor();
|
||||
mServoView.mServo.pausePainting();
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
|
||||
Reference in New Issue
Block a user