chromium/ui/gfx/x/xproto_internal.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/354829279): Remove this and convert code to safer constructs.
#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 {}

}  // namespace x11