Commit a1e9bc8b authored by Saman Sami's avatar Saman Sami Committed by Commit Bot

Fix nullptr access in SurfaceLayer::SetFallbackSurfaceId

Bug: 868828,827242
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I13199db914192ab81bbe6fd34b086b58fa275fa4
Reviewed-on: https://chromium-review.googlesource.com/1155005Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
Commit-Queue: Saman Sami <samans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579114}
parent 88d777e2
...@@ -72,7 +72,8 @@ void SurfaceLayer::SetFallbackSurfaceId(const viz::SurfaceId& surface_id) { ...@@ -72,7 +72,8 @@ void SurfaceLayer::SetFallbackSurfaceId(const viz::SurfaceId& surface_id) {
// TODO(samans): This was added to fix https://crbug.com/827242. Remove this // TODO(samans): This was added to fix https://crbug.com/827242. Remove this
// once fallback SurfaceIds aren't tied to SurfaceReferences, and // once fallback SurfaceIds aren't tied to SurfaceReferences, and
// viz::Display can handle missing fallbacks. https://crbug.com/857575 // viz::Display can handle missing fallbacks. https://crbug.com/857575
layer_tree_host()->SetNeedsCommitWithForcedRedraw(); if (layer_tree_host())
layer_tree_host()->SetNeedsCommitWithForcedRedraw();
return; 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