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

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: fix more tests and address feedback Created 5 years, 4 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 | « cc/test/fake_output_surface.h ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8f128f1f7488eec54cbb14f8f6977051c9006273 100644
--- a/cc/test/test_context_provider.h
+++ b/cc/test/test_context_provider.h
@@ -25,6 +25,10 @@ class TestContextProvider : public ContextProvider {
CreateCallback;
static scoped_refptr<TestContextProvider> Create();
+ // Creates a worker context provider that doesn't need to be bound to a
danakj 2015/08/27 18:24:01 Hm.. but this doesn't match the real context. Dive
reveman 2015/08/27 18:58:52 Create(); BindToCurrentThread(); SetupLock(); Deta
danakj 2015/08/27 20:16:40 The thing is we're calling this all the places tha
reveman 2015/08/27 20:33:07 I'm not sure I follow. This is needed in all cases
danakj 2015/08/27 21:06:40 Oh.. ok I think I see what you're saying. These m
+ // thread and can be used on any thread. This is equivalent to:
+ // Create(); BindToCurrentThread(); SetupLock(); DetachFromThread().
+ static scoped_refptr<TestContextProvider> CreateWorker();
static scoped_refptr<TestContextProvider> Create(
scoped_ptr<TestWebGraphicsContext3D> context);
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698