#include "gpu/command_buffer/common/gpu_memory_buffer_support.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "gpu/command_buffer/common/capabilities.h"
#include "ui/gfx/buffer_format_util.h"
#include "ui/gfx/geometry/size.h"
namespace gpu {
bool IsImageFromGpuMemoryBufferFormatSupported(
gfx::BufferFormat format,
const gpu::Capabilities& capabilities) { … }
bool IsImageSizeValidForGpuMemoryBufferFormat(const gfx::Size& size,
gfx::BufferFormat format) { … }
}