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

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: Review Feedback 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 // Defines an ID type which is used accross all types of shared memory
danakj 2015/08/12 23:49:01 across
ericrk 2015/08/13 00:13:56 Done.
14 // allocations. This includes other types (IOSurfaces, SharedBitmaps), not
15 // just base::SharedMemory.
16 using GenericSharedMemoryId = int;
17
18 // Generates GUID which can be used to trace shared memory using its
19 // GenericSharedMemoryId.
20 BASE_EXPORT base::trace_event::MemoryAllocatorDumpGuid
21 GetGenericSharedMemoryGUIDForTracing(
22 uint64_t tracing_process_id,
23 GenericSharedMemoryId generic_shared_memory_id);
24
25 } // namespace base
26
27 #endif // BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698