Commit 8c7199ca authored by Saman Sami's avatar Saman Sami Committed by Commit Bot

Fix segfault in FlingSchedulerAndroid::ScheduleFlingProgress

GetRootWindow can return null but ScheduleFlingProgress doesn't check
for it.

Bug: 855045
Change-Id: Ib82b8169d74efc02800bd7b975f111f653bbadc3
Reviewed-on: https://chromium-review.googlesource.com/1110260
Commit-Queue: Saman Sami <samans@chromium.org>
Reviewed-by: default avatarTimothy Dresser <tdresser@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569313}
parent f4faa64e
......@@ -29,7 +29,7 @@ void FlingSchedulerAndroid::ScheduleFlingProgress(
// If the root window does not have a Compositor (happens on Android
// WebView), we'll never receive an OnAnimate call. In this case fall back
// to BeginFrames coming from the host.
if (!window->GetCompositor()) {
if (!window || !window->GetCompositor()) {
host_->SetNeedsBeginFrameForFlingProgress();
return;
}
......
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