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

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

Issue 1120873002: Re-land: content: Single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm-browsertests-refactor
Patch Set: disable test for now 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"
20 #include "content/common/mac/io_surface_manager.h" 21 #include "content/common/mac/io_surface_manager.h"
21 #include "content/common/mac/io_surface_manager_messages.h" 22 #include "content/common/mac/io_surface_manager_messages.h"
22 #include "content/common/mac/io_surface_manager_token.h" 23 #include "content/common/mac/io_surface_manager_token.h"
23 24
24 namespace content { 25 namespace content {
25 26
26 // Implementation of IOSurfaceManager that provides a mechanism for child 27 // Implementation of IOSurfaceManager that provides a mechanism for child
27 // processes to register and acquire IOSurfaces through a Mach service. 28 // processes to register and acquire IOSurfaces through a Mach service.
28 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager { 29 class CONTENT_EXPORT BrowserIOSurfaceManager : public IOSurfaceManager {
29 public: 30 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|. 108 // Mutex that guards |initialized_|, |io_surfaces_| and |child_process_ids_|.
108 mutable base::Lock lock_; 109 mutable base::Lock lock_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager); 111 DISALLOW_COPY_AND_ASSIGN(BrowserIOSurfaceManager);
111 }; 112 };
112 113
113 } // namespace content 114 } // namespace content
114 115
115 #endif // CONTENT_BROWSER_BROWSER_IO_SURFACE_MANAGER_MAC_H_ 116 #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