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

Side by Side Diff: content/common/host_shared_bitmap_manager.h

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Fixed Ozone build. Created 4 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_COMMON_HOST_SHARED_BITMAP_MANAGER_H_ 5 #ifndef CONTENT_COMMON_HOST_SHARED_BITMAP_MANAGER_H_
6 #define CONTENT_COMMON_HOST_SHARED_BITMAP_MANAGER_H_ 6 #define CONTENT_COMMON_HOST_SHARED_BITMAP_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 29 matching lines...) Expand all
40 40
41 ~HostSharedBitmapManagerClient(); 41 ~HostSharedBitmapManagerClient();
42 42
43 void AllocateSharedBitmapForChild( 43 void AllocateSharedBitmapForChild(
44 base::ProcessHandle process_handle, 44 base::ProcessHandle process_handle,
45 size_t buffer_size, 45 size_t buffer_size,
46 const cc::SharedBitmapId& id, 46 const cc::SharedBitmapId& id,
47 base::SharedMemoryHandle* shared_memory_handle); 47 base::SharedMemoryHandle* shared_memory_handle);
48 void ChildAllocatedSharedBitmap(size_t buffer_size, 48 void ChildAllocatedSharedBitmap(size_t buffer_size,
49 const base::SharedMemoryHandle& handle, 49 const base::SharedMemoryHandle& handle,
50 base::ProcessHandle process_handle,
51 const cc::SharedBitmapId& id); 50 const cc::SharedBitmapId& id);
52 void ChildDeletedSharedBitmap(const cc::SharedBitmapId& id); 51 void ChildDeletedSharedBitmap(const cc::SharedBitmapId& id);
53 52
54 private: 53 private:
55 HostSharedBitmapManager* manager_; 54 HostSharedBitmapManager* manager_;
56 55
57 // Lock must be held around access to owned_bitmaps_. 56 // Lock must be held around access to owned_bitmaps_.
58 base::Lock lock_; 57 base::Lock lock_;
59 base::hash_set<cc::SharedBitmapId> owned_bitmaps_; 58 base::hash_set<cc::SharedBitmapId> owned_bitmaps_;
60 59
(...skipping 27 matching lines...) Expand all
88 private: 87 private:
89 friend class HostSharedBitmapManagerClient; 88 friend class HostSharedBitmapManagerClient;
90 89
91 void AllocateSharedBitmapForChild( 90 void AllocateSharedBitmapForChild(
92 base::ProcessHandle process_handle, 91 base::ProcessHandle process_handle,
93 size_t buffer_size, 92 size_t buffer_size,
94 const cc::SharedBitmapId& id, 93 const cc::SharedBitmapId& id,
95 base::SharedMemoryHandle* shared_memory_handle); 94 base::SharedMemoryHandle* shared_memory_handle);
96 bool ChildAllocatedSharedBitmap(size_t buffer_size, 95 bool ChildAllocatedSharedBitmap(size_t buffer_size,
97 const base::SharedMemoryHandle& handle, 96 const base::SharedMemoryHandle& handle,
98 base::ProcessHandle process_handle,
99 const cc::SharedBitmapId& id); 97 const cc::SharedBitmapId& id);
100 void ChildDeletedSharedBitmap(const cc::SharedBitmapId& id); 98 void ChildDeletedSharedBitmap(const cc::SharedBitmapId& id);
101 99
102 mutable base::Lock lock_; 100 mutable base::Lock lock_;
103 101
104 typedef base::hash_map<cc::SharedBitmapId, scoped_refptr<BitmapData> > 102 typedef base::hash_map<cc::SharedBitmapId, scoped_refptr<BitmapData> >
105 BitmapMap; 103 BitmapMap;
106 BitmapMap handle_map_; 104 BitmapMap handle_map_;
107 105
108 DISALLOW_COPY_AND_ASSIGN(HostSharedBitmapManager); 106 DISALLOW_COPY_AND_ASSIGN(HostSharedBitmapManager);
109 }; 107 };
110 108
111 } // namespace content 109 } // namespace content
112 110
113 #endif // CONTENT_COMMON_HOST_SHARED_BITMAP_MANAGER_H_ 111 #endif // CONTENT_COMMON_HOST_SHARED_BITMAP_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698