OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "ui/gl/trace_util.h" | 5 #include "ui/gl/trace_util.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gl { |
11 | 11 |
12 base::trace_event::MemoryAllocatorDumpGuid GetGLTextureClientGUIDForTracing( | 12 base::trace_event::MemoryAllocatorDumpGuid GetGLTextureClientGUIDForTracing( |
13 uint64_t share_group_guid, | 13 uint64_t share_group_guid, |
14 uint32_t texture_id) { | 14 uint32_t texture_id) { |
15 return base::trace_event::MemoryAllocatorDumpGuid( | 15 return base::trace_event::MemoryAllocatorDumpGuid( |
16 base::StringPrintf("gl-texture-client-x-process/%" PRIx64 "/%d", | 16 base::StringPrintf("gl-texture-client-x-process/%" PRIx64 "/%d", |
17 share_group_guid, texture_id)); | 17 share_group_guid, texture_id)); |
18 } | 18 } |
19 | 19 |
20 base::trace_event::MemoryAllocatorDumpGuid GetGLTextureServiceGUIDForTracing( | 20 base::trace_event::MemoryAllocatorDumpGuid GetGLTextureServiceGUIDForTracing( |
(...skipping 13 matching lines...) Expand all Loading... |
34 | 34 |
35 base::trace_event::MemoryAllocatorDumpGuid GetGLRenderbufferGUIDForTracing( | 35 base::trace_event::MemoryAllocatorDumpGuid GetGLRenderbufferGUIDForTracing( |
36 uint64_t share_group_guid, | 36 uint64_t share_group_guid, |
37 uint32_t renderbuffer_id) { | 37 uint32_t renderbuffer_id) { |
38 return base::trace_event::MemoryAllocatorDumpGuid( | 38 return base::trace_event::MemoryAllocatorDumpGuid( |
39 base::StringPrintf("gl-renderbuffer-x-process/%" PRIx64 "/%d", | 39 base::StringPrintf("gl-renderbuffer-x-process/%" PRIx64 "/%d", |
40 share_group_guid, renderbuffer_id)); | 40 share_group_guid, renderbuffer_id)); |
41 } | 41 } |
42 | 42 |
43 } // namespace ui | 43 } // namespace ui |
OLD | NEW |