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

Unified Diff: cc/test/test_context_provider.cc

Issue 1317533003: Revert of cc: Move worker context BindToCurrentThread/SetupLock calls out of cc::OutputSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/test_context_provider.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_provider.cc
diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc
index cbc92a55433fe3b197cfbcf196ecaa9e71b6c0dc..ca7714d30cf9f4ca1b0eaaaeb7c117f7ddd180de 100644
--- a/cc/test/test_context_provider.cc
+++ b/cc/test/test_context_provider.cc
@@ -19,18 +19,7 @@
// static
scoped_refptr<TestContextProvider> TestContextProvider::Create() {
- return Create(TestWebGraphicsContext3D::Create());
-}
-
-// static
-scoped_refptr<TestContextProvider> TestContextProvider::CreateWorker() {
- scoped_refptr<TestContextProvider> worker_context_provider =
- Create(TestWebGraphicsContext3D::Create());
- if (!worker_context_provider)
- return nullptr;
- // Worker context is initially bound but not attached to a specific thread.
- worker_context_provider->bound_ = true;
- return worker_context_provider;
+ return Create(TestWebGraphicsContext3D::Create().Pass());
}
// static
« no previous file with comments | « cc/test/test_context_provider.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698