mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Always set the callback during Rasterizer setup (flutter/engine#20976)
This commit is contained in:
parent
a35a7967ea
commit
521827d230
@ -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_) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user