Skip to content

Commit

Permalink
viz: Fix null callbacks.
Browse files Browse the repository at this point in the history
Empty once callbacks can't be run, so pass DoNothing callback instead.

Bug: 843458
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I657e750efba2d12fea9f89d3617cfeebbaed78e3
Reviewed-on: https://chromium-review.googlesource.com/1061576
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559103}
  • Loading branch information
kylechar authored and Commit Bot committed May 16, 2018
1 parent eb4fb3d commit b6969e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/viz/host/host_frame_sink_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void HostFrameSinkManager::CreateRootCompositorFrameSink(
// the old CompositorFrameSink first.
if (data.has_created_compositor_frame_sink) {
frame_sink_manager_->DestroyCompositorFrameSink(frame_sink_id,
base::OnceClosure());
base::DoNothing());
}

data.is_root = true;
Expand All @@ -160,7 +160,7 @@ void HostFrameSinkManager::CreateCompositorFrameSink(
// the old CompositorFrameSink first.
if (data.has_created_compositor_frame_sink) {
frame_sink_manager_->DestroyCompositorFrameSink(frame_sink_id,
base::OnceClosure());
base::DoNothing());
}

data.is_root = false;
Expand Down

0 comments on commit b6969e2

Please sign in to comment.