diff options
Diffstat (limited to 'chromium/media/remoting/courier_renderer.h')
-rw-r--r-- | chromium/media/remoting/courier_renderer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/media/remoting/courier_renderer.h b/chromium/media/remoting/courier_renderer.h index 9fdf9c9c743..82ead887fca 100644 --- a/chromium/media/remoting/courier_renderer.h +++ b/chromium/media/remoting/courier_renderer.h @@ -1,4 +1,4 @@ -// Copyright 2016 The Chromium Authors. All rights reserved. +// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -161,7 +161,11 @@ class CourierRenderer final : public Renderer { // though the playback might be delayed or paused. bool IsWaitingForDataFromDemuxers() const; - // Helper to deregister the renderer from the RPC messenger. + // Helpers to register/deregister the renderer with the RPC messenger. These + // must be called on the media thread to dereference the weak pointer to + // this, which if contains a valid RPC messenger pointer will result in a + // jump to the main thread. + void RegisterForRpcMessaging(); void DeregisterFromRpcMessaging(); State state_; |