// Helper that checks for overrun requests. Returns true if aRequest had not // been dropped due to disconnection or overrun. // Note that if this returns true, the caller takes the responsibility to call // mCallback with a capture result for aRequest. bool CompleteRequest(CaptureFrameRequest* aRequest);
// Helper that disconnects the request, and notifies mCallback of a temporary // failure. void DisconnectRequest(CaptureFrameRequest* aRequest);
// Handle the result from the async callback from CaptureFrameNow. void OnCaptureFrameSuccess(UniquePtr<dom::ImageBitmapCloneData> aData); void OnCaptureFrameFailure();
const uint64_t mBrowserId; const RefPtr<TaskQueue> mMainThreadWorker; const RefPtr<TaskQueue> mCallbackWorker;
webrtc::SequenceChecker mControlChecker;
webrtc::SequenceChecker mCallbackChecker; // Set in Start() and guaranteed by the owner of this class to outlive us.
webrtc::DesktopCapturer::Callback* mCallback
RTC_GUARDED_BY(mCallbackChecker) = nullptr;
// mCallbackWorker only
nsRefPtrDeque<CaptureFrameRequest> mRequests RTC_GUARDED_BY(mCallbackChecker);
};
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.