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:
Kartikaya Gupta 2012-02-29 14:08:23 -05:00
parent 24e85a9d10
commit e3d5756b24
2 changed files with 3 additions and 2 deletions

View File

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

View File

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