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

Side by Side Diff: base/memory/generic_shared_memory_id.h

Issue 1280513002: Add GenericSharedMemoryId and use w/ GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trackpools
Patch Set: Comments and tweaks. 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_
6 #define BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_
7
8 #include "base/base_export.h"
9 #include "base/trace_event/memory_allocator_dump.h"
10
11 namespace base {
12
13 namespace memory {
14
15 // Defines an ID type which is used accross all types of shared memory
16 // allocations. This includes other types (IOSurfaces, SharedBitmaps), not
17 // just base::SharedMemory.
18 using GenericSharedMemoryId = int;
Tom Sepez 2015/08/06 00:11:08 do we want to use a specific-sized unsigned type l
reveman 2015/08/06 04:25:06 +1
ericrk 2015/08/06 18:28:08 The underlying code uses base::StaticAtomicSequenc
reveman 2015/08/06 19:19:36 I think it's fine to keep this as 'int' then unles
19
20 // Generates GUID which can be used to trace shared memory using its
21 // GenericSharedMemoryId.
22 BASE_EXPORT base::trace_event::MemoryAllocatorDumpGuid
23 GetGenericSharedMemoryGUIDForTracing(
24 uint64_t tracing_process_id,
25 GenericSharedMemoryId generic_shared_memory_id);
26
27 } // namespace memory
28
29 } // namespace base
30
31 #endif // BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698