Index: content/child/child_io_surface_manager_mac.cc |
diff --git a/content/child/child_io_surface_manager_mac.cc b/content/child/child_io_surface_manager_mac.cc |
index 65df72b04aa034053d80a292362a0c234f574884..13f899e04ff9672698a100bb5c077dc585ded23e 100644 |
--- a/content/child/child_io_surface_manager_mac.cc |
+++ b/content/child/child_io_surface_manager_mac.cc |
@@ -97,7 +97,7 @@ IOSurfaceRef ChildIOSurfaceManager::AcquireIOSurface( |
// A valid token is required to acquire an IOSurface. This will wait for a |
// valid token if one has not yet been set. |
set_token_event_.Wait(); |
dshwang
2015/08/21 13:04:10
reveman, it should require "base::ThreadRestrictio
reveman
2015/08/21 14:40:31
Only if this is called on a thread where wait is n
dshwang
2015/08/21 15:21:18
Ah, compositor creates GMB in worker thread, not i
dshwang
2015/08/21 15:56:50
And crash happens in worker thread in chromeos. Fo
dshwang
2015/08/21 18:38:37
Added.
|
-#if !defined(NDEBUG) |
+#if DCHECK_IS_ON() |
DCHECK(!(set_token_thread_id_ == base::PlatformThread::CurrentRef())); |
#endif |
DCHECK(!token_.IsZero()); |