mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
android: Do not trigger a composite before Servo has finished compositing.
This commit is contained in:
parent
74ba683e27
commit
de8fae14b7
2 changed files with 5 additions and 1 deletions
|
@ -54,6 +54,10 @@ public class Servo {
|
||||||
return mJNI.version();
|
return mJNI.version();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void performUpdates() {
|
||||||
|
mRunCallback.inGLThread(() -> mJNI.performUpdates());
|
||||||
|
}
|
||||||
|
|
||||||
public void setBatchMode(boolean mode) {
|
public void setBatchMode(boolean mode) {
|
||||||
mRunCallback.inGLThread(() -> mJNI.setBatchMode(mode));
|
mRunCallback.inGLThread(() -> mJNI.setBatchMode(mode));
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ public class ServoView extends GLSurfaceView
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zoomNecessary && !scrollNecessary && mAnimating) {
|
if (!zoomNecessary && !scrollNecessary && mAnimating) {
|
||||||
requestRender();
|
mServo.performUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mZooming || mScrolling || mAnimating) {
|
if (mZooming || mScrolling || mAnimating) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue