Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: components/view_manager/surfaces/surfaces_context_provider.cc

Issue 1168943002: Remove ContextProvider::IsContextLost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextprovider: . Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 252c1008ab695dd79f71d7824c734d48f3c4a41a..34ab9d467ae26c51719421b15b95d459da2988f2 100644
--- a/components/view_manager/surfaces/surfaces_context_provider.cc
+++ b/components/view_manager/surfaces/surfaces_context_provider.cc
@@ -11,9 +11,7 @@ namespace surfaces {
SurfacesContextProvider::SurfacesContextProvider(
mojo::ScopedMessagePipeHandle command_buffer_handle)
- : command_buffer_handle_(command_buffer_handle.Pass()),
- context_(nullptr),
- context_lost_(false) {
+ : command_buffer_handle_(command_buffer_handle.Pass()), context_(nullptr) {
}
bool SurfacesContextProvider::BindToCurrentThread() {
@@ -58,9 +56,6 @@ base::Lock* SurfacesContextProvider::GetLock() {
return &context_lock_;
}
-bool SurfacesContextProvider::IsContextLost() {
- return context_lost_;
-}
bool SurfacesContextProvider::DestroyedOnMainThread() {
return !context_;
}
@@ -76,7 +71,6 @@ SurfacesContextProvider::~SurfacesContextProvider() {
}
void SurfacesContextProvider::ContextLost() {
- context_lost_ = true;
if (!lost_context_callback_.is_null())
lost_context_callback_.Run();
}

Powered by Google App Engine
This is Rietveld 408576698