summaryrefslogtreecommitdiffstats
path: root/ui/gl/trace_util.h
blob: 7a9b60a56160893ca92a1efcb7a23a02c1e790de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GL_TRACE_UTIL_H_
#define UI_GL_TRACE_UTIL_H_

#include <stdint.h>

#include "base/trace_event/memory_allocator_dump.h"
#include "ui/gl/gl_export.h"

namespace gfx {

GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid
GetGLTextureClientGUIDForTracing(uint64_t share_group_guid,
                                 uint32_t texture_client_id);

GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid
GetGLRenderbufferGUIDForTracing(uint64_t share_group_guid,
                                uint32_t renderbuffer_id);

GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid
GetGLTextureServiceGUIDForTracing(uint64_t share_group_guid,
                                  uint32_t texture_service_id);

GL_EXPORT base::trace_event::MemoryAllocatorDumpGuid GetGLBufferGUIDForTracing(
    uint64_t share_group_guid,
    uint32_t buffer_id);

}  // namespace ui

#endif  // UI_GL_TRACE_UTIL_H_