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

Unified Diff: cc/test/test_context_provider.h

Issue 1317743002: cc: Implement shared worker contexts. (v1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add aw comments 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: cc/test/test_context_provider.h
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h
index 82b3e612d681344d71d0dbf603f51dcfc8f437a7..598e2ebcc1121f6795a5f98ed687b3b0863e46ea 100644
--- a/cc/test/test_context_provider.h
+++ b/cc/test/test_context_provider.h
@@ -25,6 +25,9 @@ class TestContextProvider : public ContextProvider {
CreateCallback;
static scoped_refptr<TestContextProvider> Create();
+ // Creates a worker context provider that can be used on any thread. This is
+ // equivalent to: Create(); BindToCurrentThread(); SetupLock().
+ static scoped_refptr<TestContextProvider> CreateWorker();
static scoped_refptr<TestContextProvider> Create(
scoped_ptr<TestWebGraphicsContext3D> context);
@@ -43,6 +46,7 @@ class TestContextProvider : public ContextProvider {
void SetLostContextCallback(const LostContextCallback& cb) override;
void SetMemoryPolicyChangedCallback(
const MemoryPolicyChangedCallback& cb) override;
+ bool HasBeenDestroyed() override;
TestWebGraphicsContext3D* TestContext3d();

Powered by Google App Engine
This is Rietveld 408576698