diff --git a/flow/raster_cache.cc b/flow/raster_cache.cc index 017b907e161f7..d20c65df5b1ff 100644 --- a/flow/raster_cache.cc +++ b/flow/raster_cache.cc @@ -164,7 +164,9 @@ void RasterCache::Prepare(PrerollContext* context, context->texture_registry, context->raster_cache, context->checkerboard_offscreen_layers}; - layer->Paint(paintContext); + if (layer->needs_painting()) { + layer->Paint(paintContext); + } }); } }