| Index: content/renderer/android/synchronous_compositor_output_surface.cc | 
| diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc | 
| index 027acb67123326d7d23ee78eda8770a8cec024d2..960a3ae980fc68366f2fc86faf6ee5ea8f744a56 100644 | 
| --- a/content/renderer/android/synchronous_compositor_output_surface.cc | 
| +++ b/content/renderer/android/synchronous_compositor_output_surface.cc | 
| @@ -368,8 +368,6 @@ void SynchronousCompositorOutputSurface::OnReclaimResources( | 
| void SynchronousCompositorOutputSurface::SetMemoryPolicy(size_t bytes_limit) { | 
| DCHECK(CalledOnValidThread()); | 
| bool became_zero = memory_policy_.bytes_limit_when_visible && !bytes_limit; | 
| -  bool became_non_zero = | 
| -      !memory_policy_.bytes_limit_when_visible && bytes_limit; | 
| memory_policy_.bytes_limit_when_visible = bytes_limit; | 
| memory_policy_.num_resources_limit = kNumResourcesLimit; | 
|  | 
| @@ -379,11 +377,7 @@ void SynchronousCompositorOutputSurface::SetMemoryPolicy(size_t bytes_limit) { | 
| if (became_zero) { | 
| // This is small hack to drop context resources without destroying it | 
| // when this compositor is put into the background. | 
| -    context_provider()->ContextSupport()->SetAggressivelyFreeResources( | 
| -        true /* aggressively_free_resources */); | 
| -  } else if (became_non_zero) { | 
| -    context_provider()->ContextSupport()->SetAggressivelyFreeResources( | 
| -        false /* aggressively_free_resources */); | 
| +    context_provider()->DeleteCachedResources(); | 
| } | 
| } | 
|  | 
|  |