/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// This code is racing with the compositor, which needs to reparent the // compositor surface to the actual window (mWnd). To avoid racing mutations, // we refuse to proceed until ::SetParent() is called in the parent process. // After the ::SetParent() call, composition is scheduled in // CompositorWidgetParent::UpdateCompositorWnd(). if (!mSetParentCompleted) { // ::SetParent() is not completed yet. return;
}
// Force a resize and redraw (but not a move, activate, etc.). if (!::SetWindowPos(
mCompositorWnds.mCompositorWnd, nullptr, 0, 0, size.width,
size.height,
SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOOWNERZORDER | SWP_NOZORDER)) { return;
}
mLastCompositorWndSize = size;
}
// Creates a new instance of FxROutputHandler so that this compositor widget // can send its output to Firefox Reality for Desktop. void WinCompositorWidget::RequestFxrOutput() {
MOZ_ASSERT(mFxrHandler == nullptr);
mFxrHandler.reset(new FxROutputHandler());
}
} // namespace widget
} // namespace mozilla
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.