diff --git a/shell/common/rasterizer.cc b/shell/common/rasterizer.cc index e5ed67dcd0935..36eee5e174d06 100644 --- a/shell/common/rasterizer.cc +++ b/shell/common/rasterizer.cc @@ -89,6 +89,8 @@ void Rasterizer::Setup(std::unique_ptr surface) { delegate_.GetTaskRunners().GetRasterTaskRunner()->GetTaskQueueId(); raster_thread_merger_ = fml::MakeRefCounted(platform_id, gpu_id); + } + if (raster_thread_merger_) { raster_thread_merger_->SetMergeUnmergeCallback([=]() { // Clear the GL context after the thread configuration has changed. if (surface_) {