From e164e83a857fae541492ca810e3d731b39ff7ffd Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 7 Sep 2018 08:11:17 +0800 Subject: [PATCH] Reset the raster cache when the compositor context is created. (#6150) --- flow/compositor_context.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/flow/compositor_context.cc b/flow/compositor_context.cc index 3863bde7acb..aecd3a24cdd 100644 --- a/flow/compositor_context.cc +++ b/flow/compositor_context.cc @@ -69,6 +69,7 @@ bool CompositorContext::ScopedFrame::Raster(flow::LayerTree& layer_tree, void CompositorContext::OnGrContextCreated() { texture_registry_.OnGrContextCreated(); + raster_cache_.Clear(); } void CompositorContext::OnGrContextDestroyed() {