• Vasiliy Telezhnikov's avatar
    aw: Prevent reentering OnBeginFrame · d0fb5886
    Vasiliy Telezhnikov authored
    This CL modifies BeginFrameSourceWebView::BeginFrameObserver to prevent
    reentrancy of OnBeginFrame. If the clients of this BeginFrameSource add
    or remove observers during OnBeginFrame this will cause the source to
    subscribe/unsubscribe from upstream BeginFrameSource and potentially
    get missed BeginFrame. To avoid this we save last_used_begin_frames_
    before actually processing BeginFrame.
    
    Bug: 1044340
    Change-Id: I6df71952c0efa1e8bf7db4953453684b955c42e5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013808Reviewed-by: default avatarBo <boliu@chromium.org>
    Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#734160}
    d0fb5886
begin_frame_source_webview.cc 4.55 KB