From 699f328df5787f4960808cd3bd729dcb741e6132 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)" (#6866) This reverts commit 2c6be93fa98aeb0dd3c1efa2db201232eb8eefba. --- shell/common/rasterizer.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/shell/common/rasterizer.cc b/shell/common/rasterizer.cc index 67aa016c89747..9f3317912e5fa 100644 --- a/shell/common/rasterizer.cc +++ b/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; }