Skip to content

Commit

Permalink
android: Do not trigger a composite before Servo has finished composi…
Browse files Browse the repository at this point in the history
…ting.
  • Loading branch information
jdm authored and paulrouget committed Oct 3, 2018
1 parent 74ba683 commit de8fae1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -54,6 +54,10 @@ public String version() {
return mJNI.version();
}

public void performUpdates() {
mRunCallback.inGLThread(() -> mJNI.performUpdates());
}

public void setBatchMode(boolean mode) {
mRunCallback.inGLThread(() -> mJNI.setBatchMode(mode));
}
Expand Down
Expand Up @@ -197,7 +197,7 @@ public void doFrame(long frameTimeNanos) {
}

if (!zoomNecessary && !scrollNecessary && mAnimating) {
requestRender();
mServo.performUpdates();
}

if (mZooming || mScrolling || mAnimating) {
Expand Down

0 comments on commit de8fae1

Please sign in to comment.