mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #21848 - servo:jdm-patch-38, r=paulrouget
Remove unnecessary thread specification when flushing GL on Android. According to [the docs](https://developer.android.com/reference/android/opengl/GLSurfaceView#requestRender()) requestRender can be called from any thread, so we're just introducing unnecessary latency. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21848) <!-- Reviewable:end -->
This commit is contained in:
commit
0dd7ea5f2c
1 changed files with 1 additions and 3 deletions
|
@ -111,9 +111,7 @@ public class ServoView extends GLSurfaceView
|
|||
}
|
||||
|
||||
public void flushGLBuffers() {
|
||||
inUIThread(() -> {
|
||||
requestRender();
|
||||
});
|
||||
requestRender();
|
||||
}
|
||||
|
||||
// Scroll and click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue