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

Unified Diff: cc/output/output_surface.cc

Issue 1311093002: cc: Acquire worker context lock be calling BindToCurrentThread. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 0786d660d4a58a3e24c03dabc3411f9d3e08cd9a..6b08e51ab836d62cfe8440f6caad5c7f3ee7bd42 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -129,6 +129,9 @@ bool OutputSurface::BindToClient(OutputSurfaceClient* client) {
}
if (success && worker_context_provider_.get()) {
+ ContextProvider::ScopedContextLock scoped_context(
ericrk 2015/08/24 21:00:10 I think this may just be a naming issue and actual
reveman 2015/08/25 22:59:59 Yes, the name of this function is a bit confusing.
+ worker_context_provider_.get());
+
success = worker_context_provider_->BindToCurrentThread();
if (success)
worker_context_provider_->SetupLock();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698