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

Unified Diff: gpu/command_buffer/client/share_group.cc

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 years, 8 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
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/share_group.cc
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index 2ba790a1853504a3bea676a6c4ebdd2fa7ed20f3..d1041c06e3ae5b987da47d2f3c4fdf5c11a9a0f7 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -374,7 +374,17 @@ ShareGroup::ShareGroup(bool bind_generates_resource, uint64_t tracing_guid)
}
}
-void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) {
+void ShareGroup::Lose() {
+ base::AutoLock hold(lost_lock_);
+ lost_ = true;
+}
+
+bool ShareGroup::IsLost() const {
+ base::AutoLock hold(lost_lock_);
+ return lost_;
+}
+
+void ShareGroup::SetProgramInfoManagerForTesting(ProgramInfoManager* manager) {
program_info_manager_.reset(manager);
}
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698