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