/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *Thisclassrepresentsthevirtualthreadforcanvasrendering.Dependingon *platformrequirementsanduserconfiguration,canvasrenderingmayhappenon *theCompositorthread,RenderthreadortheCanvasRenderthread.
*/ class CanvasRenderThread final {
NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DELETE_ON_MAIN_THREAD(
CanvasRenderThread)
public: /// Can only be called from the main thread, expected to be called at most /// once during a process' lifetime. Must be called after the Compositor and /// Render threads are initialized. staticvoid Start();
/// Can only be called from the main thread. Must be called before the /// Compositor and Render threads are shutdown. staticvoid Shutdown();
/// Can be called from any thread. staticbool IsInCanvasRenderThread();
/// Can be called from any thread. staticbool IsInCanvasWorkerThread();
/// Can be called from any thread. staticbool IsInCanvasRenderOrWorkerThread();
/// Can be called from any thread, may return nullptr late in shutdown. static already_AddRefed<nsIThread> GetCanvasRenderThread();
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 und die Messung sind noch experimentell.