#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gfx/x/xproto_internal.h"
#include <stdint.h>
#include <xcb/xcb.h>
#include <xcb/xcbext.h>
namespace x11 {
MallocedRefCountedMemory::MallocedRefCountedMemory(void* data)
: … { … }
MallocedRefCountedMemory::~MallocedRefCountedMemory() = default;
void* MallocedRefCountedMemory::data() { … }
const void* MallocedRefCountedMemory::data() const { … }
OffsetRefCountedMemory::OffsetRefCountedMemory(
scoped_refptr<UnsizedRefCountedMemory> memory,
size_t offset,
size_t size)
: … { … }
OffsetRefCountedMemory::~OffsetRefCountedMemory() = default;
void* OffsetRefCountedMemory::data() { … }
const void* OffsetRefCountedMemory::data() const { … }
UnretainedRefCountedMemory::UnretainedRefCountedMemory(void* data)
: … { … }
UnretainedRefCountedMemory::~UnretainedRefCountedMemory() = default;
void* UnretainedRefCountedMemory::data() { … }
const void* UnretainedRefCountedMemory::data() const { … }
}