зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 52573727971b (bug 1449567) for braking android build bustages on a CLOSED TREE
This commit is contained in:
Родитель
5055667930
Коммит
737bd284b4
|
@ -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(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче