| Index: cc/surfaces/display.cc
|
| diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
|
| index e3693207031f15a0056d3d9600f33b45476f3d10..846897b21806db19b8c100a9660caa75ee05f441 100644
|
| --- a/cc/surfaces/display.cc
|
| +++ b/cc/surfaces/display.cc
|
| @@ -412,6 +412,11 @@ void Display::OnSurfaceDamaged(const SurfaceId& surface_id, bool* changed) {
|
|
|
| void Display::OnSurfaceCreated(const SurfaceInfo& surface_info) {}
|
|
|
| +void Display::OnSurfaceDiscarded(const SurfaceId& surface_id) {
|
| + if (aggregator_)
|
| + aggregator_->ReleaseResources(surface_id);
|
| +}
|
| +
|
| const SurfaceId& Display::CurrentSurfaceId() {
|
| return current_surface_id_;
|
| }
|
|
|