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

Unified Diff: mojo/cc/context_provider_mojo.cc

Issue 1317743002: cc: Implement shared worker contexts. (v1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tear down Created 5 years, 3 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 | « mojo/cc/context_provider_mojo.h ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/context_provider_mojo.cc
diff --git a/mojo/cc/context_provider_mojo.cc b/mojo/cc/context_provider_mojo.cc
index 801d9f5e478b0322c8863a47a86390e906ef7473..610d506d94be07613754f138e6f22164f3200ec4 100644
--- a/mojo/cc/context_provider_mojo.cc
+++ b/mojo/cc/context_provider_mojo.cc
@@ -57,7 +57,13 @@ base::Lock* ContextProviderMojo::GetLock() {
return &context_lock_;
}
-bool ContextProviderMojo::DestroyedOnMainThread() { return !context_; }
+bool ContextProviderMojo::HasBeenLostOnMainThread() {
+ return !context_;
+}
+
+bool ContextProviderMojo::HasBeenDestroyed() {
+ return !context_;
+}
ContextProviderMojo::~ContextProviderMojo() {
context_gl_.reset();
« no previous file with comments | « mojo/cc/context_provider_mojo.h ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698