Index: components/view_manager/surfaces/surfaces_context_provider.cc |
diff --git a/components/view_manager/surfaces/surfaces_context_provider.cc b/components/view_manager/surfaces/surfaces_context_provider.cc |
index 9f2defa4fc9c2795fb6b9f0398ff0fa0ace2b877..df07d1edf8266054cc084e6c2deaeee0acca40b3 100644 |
--- a/components/view_manager/surfaces/surfaces_context_provider.cc |
+++ b/components/view_manager/surfaces/surfaces_context_provider.cc |
@@ -109,6 +109,10 @@ void SurfacesContextProvider::SetLostContextCallback( |
lost_context_callback_ = lost_context_callback; |
} |
+bool SurfacesContextProvider::HasBeenDestroyed() { |
+ return !command_buffer_local_; |
+} |
+ |
SurfacesContextProvider::~SurfacesContextProvider() { |
implementation_->Flush(); |
implementation_.reset(); |