mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 731417 - Fix missing call to checkMonitoringEnabled for the LayerRenderer we use in OMTC, and make it frame rate layer wider so it doesn't get truncated. r=pcwalton
This commit is contained in:
parent
24e85a9d10
commit
e3d5756b24
@ -379,6 +379,7 @@ public class GeckoLayerClient implements GeckoEventResponder,
|
||||
public LayerRenderer.Frame createFrame() {
|
||||
// Create the shaders and textures if necessary.
|
||||
if (!mLayerRendererInitialized) {
|
||||
mLayerRenderer.checkMonitoringEnabled();
|
||||
mLayerRenderer.createProgram();
|
||||
mLayerRendererInitialized = true;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
|
||||
*/
|
||||
private static final int MAX_FRAME_TIME = 16; /* 1000 ms / 60 FPS */
|
||||
|
||||
private static final int FRAME_RATE_METER_WIDTH = 64;
|
||||
private static final int FRAME_RATE_METER_WIDTH = 128;
|
||||
private static final int FRAME_RATE_METER_HEIGHT = 32;
|
||||
|
||||
private final LayerView mView;
|
||||
@ -405,7 +405,7 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
private void checkMonitoringEnabled() {
|
||||
void checkMonitoringEnabled() {
|
||||
/* Do this I/O off the main thread to minimize its impact on startup time. */
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user