Index: cc/surfaces/surface.cc |
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc |
index 3e16c6928a05e7f2d273785305693021a121491b..7fee1d80d118902050b551963ea794d47ab4d495 100644 |
--- a/cc/surfaces/surface.cc |
+++ b/cc/surfaces/surface.cc |
@@ -121,6 +121,13 @@ void Surface::RequestCopyOfOutput( |
copy_requests.push_back(std::move(copy_request)); |
} |
+void Surface::Reset() { |
+ active_frame_.reset(); |
+ pending_frame_.reset(); |
+ blocking_surfaces_.clear(); |
+ RunDrawCallbacks(); |
+} |
+ |
void Surface::NotifySurfaceIdAvailable(const SurfaceId& surface_id) { |
auto it = blocking_surfaces_.find(surface_id); |
// This surface may no longer have blockers if the deadline has passed. |