chromium/media/base/frame_buffer_pool.cc

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

#include "media/base/frame_buffer_pool.h"

#include "base/logging.h"

#include <vector>

#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/process/memory.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/process_memory_dump.h"

namespace media {

// Helper class to allow thread safe memory dumping without a task runner.
class FrameBufferPool::FrameBufferMemoryDumpProviderImpl
    : public base::trace_event::MemoryDumpProvider {};

struct FrameBufferPool::FrameBuffer {};

FrameBufferPool::FrameBufferPool(bool zero_initialize_memory)
    :{}

FrameBufferPool::~FrameBufferPool() {}

uint8_t* FrameBufferPool::GetFrameBuffer(size_t min_size, void** fb_priv) {}

void FrameBufferPool::ReleaseFrameBuffer(void* fb_priv) {}

uint8_t* FrameBufferPool::AllocateAlphaPlaneForFrameBuffer(size_t min_size,
                                                           void* fb_priv) {}

base::OnceClosure FrameBufferPool::CreateFrameCallback(void* fb_priv) {}

bool FrameBufferPool::OnMemoryDump(
    const base::trace_event::MemoryDumpArgs& args,
    base::trace_event::ProcessMemoryDump* pmd) {}

void FrameBufferPool::Shutdown() {}

// static
bool FrameBufferPool::IsUsedLocked(const FrameBuffer* buf) {}

void FrameBufferPool::EraseUnusedResourcesLocked() {}

void FrameBufferPool::OnVideoFrameDestroyed(FrameBuffer* frame_buffer) {}

}  // namespace media