From 0c9b475c2afd105b8c247d5bd320de0fc0ba3922 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Thu, 15 Nov 2018 11:41:53 -0800 Subject: [PATCH] Revert "Clean up stale cache entries in Skia's GrContext (#6859)" (flutter/engine#6866) This reverts commit 929c7d8d8b0fbb72866bf3e4925187f76be0c955. --- engine/src/flutter/shell/common/rasterizer.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/engine/src/flutter/shell/common/rasterizer.cc b/engine/src/flutter/shell/common/rasterizer.cc index 67aa016c89..9f3317912e 100644 --- a/engine/src/flutter/shell/common/rasterizer.cc +++ b/engine/src/flutter/shell/common/rasterizer.cc @@ -16,10 +16,6 @@ namespace shell { -// The rasterizer will tell Skia to purge cached resources that have not been -// used within this interval. -static constexpr std::chrono::milliseconds kSkiaCleanupExpiration(15000); - Rasterizer::Rasterizer(blink::TaskRunners task_runners) : Rasterizer(std::move(task_runners), std::make_unique()) {} @@ -190,9 +186,6 @@ bool Rasterizer::DrawToSurface(flow::LayerTree& layer_tree) { external_view_embedder->SubmitFrame(surface_->GetContext()); } FireNextFrameCallbackIfPresent(); - - surface_->GetContext()->performDeferredCleanup(kSkiaCleanupExpiration); - return true; }