Backed out changeset 52573727971b (bug 1449567) for braking android build bustages on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2018-09-16 07:29:22 +03:00
Родитель 5055667930
Коммит 737bd284b4
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -76,7 +76,7 @@ public class LayerSession {
@WrapForJNI(calledFrom = "ui", dispatchTo = "gecko") @WrapForJNI(calledFrom = "ui", dispatchTo = "gecko")
@Override protected native void disposeNative(); @Override protected native void disposeNative();
@WrapForJNI(calledFrom = "ui", dispatchTo = "gecko") @WrapForJNI(calledFrom = "any", dispatchTo = "gecko")
public native void attachNPZC(PanZoomController npzc); public native void attachNPZC(PanZoomController npzc);
@WrapForJNI(calledFrom = "ui", dispatchTo = "gecko") @WrapForJNI(calledFrom = "ui", dispatchTo = "gecko")

Просмотреть файл

@ -1239,16 +1239,13 @@ nsWindow::GeckoViewSupport::Transfer(const GeckoSession::Window::LocalRef& inst,
window.mNPZCSupport.Detach(); window.mNPZCSupport.Detach();
} }
if (window.mLayerViewSupport && if (window.mLayerViewSupport) {
window.mLayerViewSupport->GetJavaCompositor() != aCompositor) {
window.mLayerViewSupport.Detach(); window.mLayerViewSupport.Detach();
} }
auto compositor = LayerSession::Compositor::LocalRef( auto compositor = LayerSession::Compositor::LocalRef(
inst.Env(), LayerSession::Compositor::Ref::From(aCompositor)); inst.Env(), LayerSession::Compositor::Ref::From(aCompositor));
if (!window.mLayerViewSupport) { window.mLayerViewSupport.Attach(compositor, &window, compositor);
window.mLayerViewSupport.Attach(compositor, &window, compositor);
}
MOZ_ASSERT(window.mAndroidView); MOZ_ASSERT(window.mAndroidView);
window.mAndroidView->mEventDispatcher->Attach( window.mAndroidView->mEventDispatcher->Attach(