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

Unified Diff: ui/compositor/test/in_process_context_provider.cc

Issue 1317743002: cc: Implement shared worker contexts. (v1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing context3d_task_runner_ check 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: ui/compositor/test/in_process_context_provider.cc
diff --git a/ui/compositor/test/in_process_context_provider.cc b/ui/compositor/test/in_process_context_provider.cc
index 76cd19dc191ff8624982205a2d93b573b0058ecb..a6c8d3abe67027b0ca9d095433ffce96056f5a96 100644
--- a/ui/compositor/test/in_process_context_provider.cc
+++ b/ui/compositor/test/in_process_context_provider.cc
@@ -218,7 +218,9 @@ void InProcessContextProvider::SetMemoryPolicyChangedCallback(
}
void InProcessContextProvider::OnLostContext() {
- DCHECK(context_thread_checker_.CalledOnValidThread());
+ // Note: no thread check here as this should not change the thread for which
+ // this context is currently bound. e.g. a worker context might be unbound
+ // and this should not result in it being bound to the current thread.
{
base::AutoLock lock(destroyed_lock_);
if (destroyed_)

Powered by Google App Engine
This is Rietveld 408576698