/* 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/. */
RefPtr<VsyncObserver> CompositorWidget::GetVsyncObserver() const { // This should only used when the widget is in the GPU process, and should be // implemented by IPDL-enabled CompositorWidgets. // GPU process does not have a CompositorVsyncDispatcher.
MOZ_ASSERT_UNREACHABLE("Must be implemented by derived class"); return nullptr;
}
LayoutDeviceIntRegion CompositorWidget::GetTransparentRegion() { // By default, we check the transparency mode to determine if the widget is // transparent, and if so, designate the entire widget drawing area as // transparent. Widgets wanting more complex transparency region determination // should override this method. auto* widget = RealWidget(); if (!widget || widget->GetTransparencyMode() != TransparencyMode::Opaque ||
widget->WidgetPaintsBackground()) { return LayoutDeviceIntRect(LayoutDeviceIntPoint(0, 0), GetClientSize());
} return LayoutDeviceIntRegion();
}
} // namespace widget
} // namespace mozilla
¤ Dauer der Verarbeitung: 0.13 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.