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

Side by Side Diff: content/browser/browser_io_surface_manager_mac.h

Issue 1171293005: Revert of content: Single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm-browsertests-refactor
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_
6 #define CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ 6 #define CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_
7 7
8 #include <mach/mach.h> 8 #include <mach/mach.h>
9 9
10 #include <map> 10 #include <map>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/containers/scoped_ptr_hash_map.h" 13 #include "base/containers/scoped_ptr_hash_map.h"
14 #include "base/mac/dispatch_source_mach.h" 14 #include "base/mac/dispatch_source_mach.h"
15 #include "base/mac/scoped_mach_port.h" 15 #include "base/mac/scoped_mach_port.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/singleton.h" 18 #include "base/memory/singleton.h"
19 #include "base/synchronization/lock.h" 19 #include "base/synchronization/lock.h"
20 #include "content/common/content_export.h"
21 #include "content/common/mac/io_surface_manager.h" 20 #include "content/common/mac/io_surface_manager.h"
22 #include "content/common/mac/io_surface_manager_messages.h" 21 #include "content/common/mac/io_surface_manager_messages.h"
23 #include "content/common/mac/io_surface_manager_token.h" 22 #include "content/common/mac/io_surface_manager_token.h"
24 23
25 namespace content { 24 namespace content {
26 25
27 // Implementation of IOSurfaceManager that provides a mechanism for child 26 // Implementation of IOSurfaceManager that provides a mechanism for child
28 // processes to register and acquire IOSurfaces through a Mach service. 27 // processes to register and acquire IOSurfaces through a Mach service.
29 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager { 28 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager {
30 public: 29 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 106
108 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|. 107 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|.
109 mutable base::Lock lock_; 108 mutable base::Lock lock_;
110 109
111 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager); 110 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager);
112 }; 111 };
113 112
114 } // namespace content 113 } // namespace content
115 114
116 #endif // CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ 115 #endif // CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/android/in_process_surface_texture_manager.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698