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

Unified Diff: blimp/client/compositor/blimp_context_provider.h

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
Index: blimp/client/compositor/blimp_context_provider.h
diff --git a/blimp/client/compositor/blimp_context_provider.h b/blimp/client/compositor/blimp_context_provider.h
index 922ae4db7320dd049601c7170fa5ce9d3ae47820..0a8a04e6ee5071eb77e29ba5a11f40813c063e7c 100644
--- a/blimp/client/compositor/blimp_context_provider.h
+++ b/blimp/client/compositor/blimp_context_provider.h
@@ -34,12 +34,13 @@ class BlimpContextProvider : public cc::ContextProvider {
base::Lock* GetLock() override;
void VerifyContexts() override;
void DeleteCachedResources() override;
- bool DestroyedOnMainThread() override;
+ bool HasBeenLostOnMainThread() override;
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
void SetMemoryPolicyChangedCallback(
const MemoryPolicyChangedCallback& memory_policy_changed_callback)
override;
+ bool HasBeenDestroyed() override;
protected:
explicit BlimpContextProvider(gfx::AcceleratedWidget widget);
@@ -59,8 +60,8 @@ class BlimpContextProvider : public cc::ContextProvider {
LostContextCallback lost_context_callback_;
- base::Lock destroyed_lock_;
- bool destroyed_;
+ base::Lock lost_lock_;
+ bool lost_;
DISALLOW_COPY_AND_ASSIGN(BlimpContextProvider);
};
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.cc ('k') | blimp/client/compositor/blimp_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698