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

Unified Diff: content/child/child_io_surface_manager_mac.h

Issue 1312353002: content: Remove base::WaitableEvent from ChildIOSurfaceManager. (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 | content/child/child_io_surface_manager_mac.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.h
diff --git a/content/child/child_io_surface_manager_mac.h b/content/child/child_io_surface_manager_mac.h
index fea9214a69a7f202d0c83ff7fd87901558a11558..6160d5361174f91c1bd56b730967e7a86dd6b399 100644
--- a/content/child/child_io_surface_manager_mac.h
+++ b/content/child/child_io_surface_manager_mac.h
@@ -8,8 +8,6 @@
#include "base/mac/scoped_mach_port.h"
#include "base/macros.h"
#include "base/memory/singleton.h"
-#include "base/synchronization/waitable_event.h"
-#include "base/threading/platform_thread.h"
#include "content/common/mac/io_surface_manager.h"
#include "content/common/mac/io_surface_manager_token.h"
@@ -38,10 +36,6 @@ class CONTENT_EXPORT ChildIOSurfaceManager : public IOSurfaceManager {
// Set the token used when communicating with the Mach service.
void set_token(const IOSurfaceManagerToken& token) {
token_ = token;
dshwang 2015/08/26 13:07:18 Don't we need lock? IO thread set it and any threa
reveman 2015/08/26 14:38:21 A mutex here would be sad as all other code is thr
Robert Sesek 2015/08/26 17:51:26 Can you DCHECK that this is supposed to be called
reveman 2015/08/26 19:40:33 As discussed, we can't add a DCHECK for this but I
-#if !defined(NDEBUG)
- set_token_thread_id_ = base::PlatformThread::CurrentRef();
-#endif
- set_token_event_.Signal();
}
private:
@@ -52,10 +46,6 @@ class CONTENT_EXPORT ChildIOSurfaceManager : public IOSurfaceManager {
base::mac::ScopedMachSendRight service_port_;
IOSurfaceManagerToken token_;
-#if !defined(NDEBUG)
- base::PlatformThreadRef set_token_thread_id_;
-#endif
- base::WaitableEvent set_token_event_;
DISALLOW_COPY_AND_ASSIGN(ChildIOSurfaceManager);
};
« no previous file with comments | « no previous file | content/child/child_io_surface_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698