chromium/remoting/host/video_memory_utils.cc

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

#include "remoting/host/video_memory_utils.h"

#include "base/logging.h"
#include "base/memory/ptr_util.h"

#if BUILDFLAG(IS_WIN)
#include <windows.h>

#include "base/memory/writable_shared_memory_region.h"
#endif

namespace remoting {

//////////////////////////////////////////////////////////////////////////////
// SharedVideoMemory

// static
std::unique_ptr<SharedVideoMemory> SharedVideoMemory::Create(
    size_t size,
    int id,
    base::OnceClosure on_deleted_callback) {}

SharedVideoMemory::~SharedVideoMemory() {}

SharedVideoMemory::SharedVideoMemory(base::ReadOnlySharedMemoryRegion region,
                                     base::WritableSharedMemoryMapping mapping,
                                     webrtc::SharedMemory::Handle handle,
                                     int id,
                                     base::OnceClosure on_deleted_callback)
    :{}

//////////////////////////////////////////////////////////////////////////////
// SharedVideoMemoryFactory

SharedVideoMemoryFactory::SharedVideoMemoryFactory(
    SharedMemoryCreatedCallback shared_memory_created_callback,
    SharedMemoryReleasedCallback shared_memory_released_callback)
    :{}

SharedVideoMemoryFactory::~SharedVideoMemoryFactory() = default;

std::unique_ptr<webrtc::SharedMemory>
SharedVideoMemoryFactory::CreateSharedMemory(size_t size) {}

//////////////////////////////////////////////////////////////////////////////
// IpcSharedBufferCore

IpcSharedBufferCore::IpcSharedBufferCore(
    int id,
    base::ReadOnlySharedMemoryRegion region)
    :{}

IpcSharedBufferCore::~IpcSharedBufferCore() = default;

//////////////////////////////////////////////////////////////////////////////
// IpcSharedBuffer

IpcSharedBuffer::IpcSharedBuffer(scoped_refptr<IpcSharedBufferCore> core)
    :{}

IpcSharedBuffer::~IpcSharedBuffer() = default;

}  // namespace remoting