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

Unified Diff: ui/compositor/test/in_process_context_factory.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 | « content/renderer/render_widget.cc ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index 3bb555a80aa40a2b3877bcf0ec7b08648fe5cd7f..942947d5b1b020f3ebfcfe21cc7cf2097d2067cb 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -115,15 +115,6 @@
scoped_refptr<InProcessContextProvider> worker_context_provider =
InProcessContextProvider::CreateOffscreen(&gpu_memory_buffer_manager_,
&image_factory_);
- if (worker_context_provider &&
- !worker_context_provider->BindToCurrentThread())
- worker_context_provider = nullptr;
- if (worker_context_provider) {
- worker_context_provider->SetupLock();
- // Detach from thread to allow context to be destroyed on a different
- // thread without being used.
- worker_context_provider->DetachFromThread();
- }
scoped_ptr<cc::OutputSurface> real_output_surface;
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698