Commit 199f5e26 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

Remove window_android_in_vsync_

This code came from when this class was the message filter and thus was
per-process. It is now per-view so there is no need to have code that
handles multiple begin frames.

Change-Id: I76ed6bb9a6937168537d59901917285161d44e82
Reviewed-on: https://chromium-review.googlesource.com/c/1316769
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605315}
parent 4b55c2fd
......@@ -24,7 +24,6 @@ SynchronousCompositorSyncCallBridge::SynchronousCompositorSyncCallBridge(
SynchronousCompositorSyncCallBridge::~SynchronousCompositorSyncCallBridge() {
DCHECK(frame_futures_.empty());
DCHECK(!window_android_in_vsync_);
}
void SynchronousCompositorSyncCallBridge::RemoteReady() {
......@@ -88,12 +87,7 @@ bool SynchronousCompositorSyncCallBridge::WaitAfterVSyncOnUIThread(
if (remote_state_ != RemoteState::READY)
return false;
CHECK(!begin_frame_response_valid_);
if (window_android_in_vsync_) {
DCHECK_EQ(window_android_in_vsync_, window_android);
return true;
}
window_android_in_vsync_ = window_android;
window_android_in_vsync_->AddBeginFrameCompletionCallback(base::BindOnce(
window_android->AddBeginFrameCompletionCallback(base::BindOnce(
&SynchronousCompositorSyncCallBridge::BeginFrameCompleteOnUIThread,
this));
return true;
......@@ -131,8 +125,6 @@ bool SynchronousCompositorSyncCallBridge::IsRemoteReadyOnUIThread() {
void SynchronousCompositorSyncCallBridge::BeginFrameCompleteOnUIThread() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(window_android_in_vsync_);
window_android_in_vsync_ = nullptr;
bool update_state = false;
SyncCompositorCommonRendererParams render_params;
......
......@@ -127,7 +127,6 @@ class SynchronousCompositorSyncCallBridge
const int routing_id_;
// UI thread only.
ui::WindowAndroid* window_android_in_vsync_ = nullptr;
SynchronousCompositorHost* host_;
// Shared variables between the IO thread and UI thread.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment