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 #ifndef UI_GL_TRACE_UTIL_H_ | 5 #ifndef UI_GL_TRACE_UTIL_H_ |
6 #define UI_GL_TRACE_UTIL_H_ | 6 #define UI_GL_TRACE_UTIL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/trace_event/memory_allocator_dump.h" | 10 #include "base/trace_event/memory_allocator_dump.h" |
9 #include "ui/gl/gl_export.h" | 11 #include "ui/gl/gl_export.h" |
10 | 12 |
11 namespace gfx { | 13 namespace gfx { |
12 | 14 |
13 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid | 15 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid |
14 GetGLTextureClientGUIDForTracing(uint64_t share_group_guid, | 16 GetGLTextureClientGUIDForTracing(uint64_t share_group_guid, |
15 uint32_t texture_client_id); | 17 uint32_t texture_client_id); |
16 | 18 |
17 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid | 19 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid |
18 GetGLRenderbufferGUIDForTracing(uint64_t share_group_guid, | 20 GetGLRenderbufferGUIDForTracing(uint64_t share_group_guid, |
19 uint32_t renderbuffer_id); | 21 uint32_t renderbuffer_id); |
20 | 22 |
21 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid | 23 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid |
22 GetGLTextureServiceGUIDForTracing(uint64_t share_group_guid, | 24 GetGLTextureServiceGUIDForTracing(uint64_t share_group_guid, |
23 uint32_t texture_service_id); | 25 uint32_t texture_service_id); |
24 | 26 |
25 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid GetGLBufferGUIDForTracing( | 27 GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid GetGLBufferGUIDForTracing( |
26 uint64_t share_group_guid, | 28 uint64_t share_group_guid, |
27 uint32_t buffer_id); | 29 uint32_t buffer_id); |
28 | 30 |
29 } // namespace ui | 31 } // namespace ui |
30 | 32 |
31 #endif // UI_GL_TRACE_UTIL_H_ | 33 #endif // UI_GL_TRACE_UTIL_H_ |
OLD | NEW |