Skip to content

Commit

Permalink
Revert "Clean up stale cache entries in Skia's GrContext (flutter#6859)…
Browse files Browse the repository at this point in the history
…" (flutter#6866)

This reverts commit 2c6be93.
  • Loading branch information
dnfield authored Nov 15, 2018
1 parent c0aa62f commit 699f328
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions shell/common/rasterizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<flow::CompositorContext>()) {}
Expand Down Expand Up @@ -190,9 +186,6 @@ bool Rasterizer::DrawToSurface(flow::LayerTree& layer_tree) {
external_view_embedder->SubmitFrame(surface_->GetContext());
}
FireNextFrameCallbackIfPresent();

surface_->GetContext()->performDeferredCleanup(kSkiaCleanupExpiration);

return true;
}

Expand Down

0 comments on commit 699f328

Please sign in to comment.