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

Unified Diff: content/child/child_io_surface_manager_mac.cc

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve reviewers' comments 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/child/child_io_surface_manager_mac.h ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1e5665afd0afaf05a556c104833c40d8a8879382..6c280606a65451abc9f2a163feaf52e18ece3a99 100644
--- a/content/child/child_io_surface_manager_mac.cc
+++ b/content/child/child_io_surface_manager_mac.cc
@@ -96,9 +96,7 @@ IOSurfaceRef ChildIOSurfaceManager::AcquireIOSurface(int io_surface_id) {
// 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();
-#if !defined(NDEBUG)
- DCHECK(!(set_token_thread_id_ == base::PlatformThread::CurrentRef()));
-#endif
+ DCHECK(!set_token_thread_checker_->CalledOnValidThread());
reveman 2015/08/18 14:34:27 this is not the same. you can't use a thread check
dshwang 2015/08/18 14:45:50 How it's different. The implementation is same; ht
reveman 2015/08/18 15:02:38 if ENABLE_THREAD_CHECKER is false then this is the
dshwang 2015/08/18 15:41:44 ENABLE_THREAD_CHECKER is true if (!defined(NDEBUG)
DCHECK(!token_.IsZero());
mach_port_t reply_port;
« no previous file with comments | « content/child/child_io_surface_manager_mac.h ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698