Skip to content

Commit

Permalink
Always set the callback during Rasterizer setup (flutter#20976)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Garcia authored Sep 3, 2020
1 parent 68b7b84 commit 3f05b52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/common/rasterizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ void Rasterizer::Setup(std::unique_ptr<Surface> surface) {
delegate_.GetTaskRunners().GetRasterTaskRunner()->GetTaskQueueId();
raster_thread_merger_ =
fml::MakeRefCounted<fml::RasterThreadMerger>(platform_id, gpu_id);
}
if (raster_thread_merger_) {
raster_thread_merger_->SetMergeUnmergeCallback([=]() {
// Clear the GL context after the thread configuration has changed.
if (surface_) {
Expand Down

0 comments on commit 3f05b52

Please sign in to comment.