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:
Niklas Merz
2026-01-10 21:15:41 +01:00
committed by GitHub
parent 0266a28478
commit 4f3b6fd267
3 changed files with 8 additions and 8 deletions

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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() {