Index: cc/surfaces/surface_aggregator.cc |
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc |
index f0e73f8a06a835fdb22d2368cad0415218225dd2..bde4f820a843b2c03f426f6873e9808798cde9e1 100644 |
--- a/cc/surfaces/surface_aggregator.cc |
+++ b/cc/surfaces/surface_aggregator.cc |
@@ -760,8 +760,10 @@ gfx::Rect SurfaceAggregator::PrewalkTree(const SurfaceId& surface_id, |
CHECK(debug_weak_this.get()); |
// TODO(staraz): It shouldn't need to call the callback when the damage is |
// from |surface| and not from |child_surfaces|. |
- if (!damage_rect.IsEmpty()) |
+ if (!damage_rect.IsEmpty()) { |
surface->RunWillDrawCallback(damage_rect); |
+ manager_->SurfaceWillDraw(surface->surface_id()); |
+ } |
CHECK(debug_weak_this.get()); |
for (const auto& render_pass : frame.render_pass_list) { |