зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1151102 - Add some diagnostic logging. r=snorp
--HG-- extra : commitid : HGgmg6anUOh
This commit is contained in:
Родитель
8f2b8f8996
Коммит
e45e2f99e5
|
@ -6042,6 +6042,9 @@ PresShell::Paint(nsView* aViewToPaint,
|
|||
// we only want to do that when we have real content to paint.
|
||||
// See Bug 798245
|
||||
if (mIsFirstPaint && !mPaintingSuppressed) {
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
__android_log_print(ANDROID_LOG_INFO, "GeckoBug1151102", "PresShell doing a first-paint");
|
||||
#endif
|
||||
layerManager->SetIsFirstPaint();
|
||||
mIsFirstPaint = false;
|
||||
}
|
||||
|
|
|
@ -606,6 +606,7 @@ class GeckoLayerClient implements LayerView.Listener, PanZoomTarget
|
|||
|
||||
// Indicate that the document is about to be composited so the
|
||||
// LayerView background can be removed.
|
||||
Log.i("GeckoBug1151102", "Done first paint; state " + mView.getPaintState());
|
||||
if (mView.getPaintState() == LayerView.PAINT_START) {
|
||||
mView.setPaintState(LayerView.PAINT_BEFORE_FIRST);
|
||||
}
|
||||
|
|
|
@ -637,6 +637,7 @@ public class LayerRenderer implements Tabs.OnTabsChangedListener {
|
|||
@Override
|
||||
public void run() {
|
||||
mView.setSurfaceBackgroundColor(Color.TRANSPARENT);
|
||||
Log.i("GeckoBug1151102", "Cleared bg color");
|
||||
}
|
||||
});
|
||||
mView.setPaintState(LayerView.PAINT_AFTER_FIRST);
|
||||
|
@ -653,6 +654,7 @@ public class LayerRenderer implements Tabs.OnTabsChangedListener {
|
|||
// thread, so this may need to be changed if any problems appear.
|
||||
if (msg == Tabs.TabEvents.SELECTED) {
|
||||
if (mView != null) {
|
||||
Log.i("GeckoBug1151102", "Tab switch; entering PAINT_START");
|
||||
mView.setSurfaceBackgroundColor(tab.getBackgroundColor());
|
||||
mView.setPaintState(LayerView.PAINT_START);
|
||||
}
|
||||
|
|
|
@ -293,6 +293,7 @@ public class LayerView extends ScrollView implements Tabs.OnTabsChangedListener
|
|||
|
||||
mSurfaceView = new LayerSurfaceView(getContext(), this);
|
||||
mSurfaceView.setBackgroundColor(Color.WHITE);
|
||||
Log.i("GeckoBug1151102", "Initialized surfaceview");
|
||||
|
||||
// The "filler" view sits behind the URL bar and should never be
|
||||
// visible. It exists solely to make this LayerView actually
|
||||
|
|
|
@ -1034,6 +1034,7 @@ var BrowserApp = {
|
|||
},
|
||||
|
||||
contentDocumentChanged: function() {
|
||||
dump("GeckoBug1151102: Setting first-paint flag on DWU");
|
||||
window.top.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).isFirstPaint = true;
|
||||
Services.androidBridge.contentDocumentChanged();
|
||||
},
|
||||
|
|
|
@ -682,6 +682,7 @@ AndroidBridge::SetLayerClient(GeckoLayerClient::Param jobj)
|
|||
// We therefore need to link up the new java objects to Gecko, and that's what
|
||||
// we do here.
|
||||
bool resetting = (mLayerClient != nullptr);
|
||||
__android_log_print(ANDROID_LOG_INFO, "GeckoBug1151102", "Reseting layer client: %d", resetting);
|
||||
|
||||
mLayerClient = jobj;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче