blob: 9025640e0f5ce681b68ab31a6222a12687d1ff8e [file] [log] [blame]
// 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.
#include "gpu/command_buffer/client/shared_image_interface.h"
#include "base/notreached.h"
namespace gpu {
uint32_t SharedImageInterface::UsageForMailbox(const Mailbox& mailbox) {
return 0u;
}
void SharedImageInterface::NotifyMailboxAdded(const Mailbox& /*mailbox*/,
uint32_t /*usage*/) {}
Mailbox SharedImageInterface::CreateSharedImage(
gfx::GpuMemoryBuffer* gpu_memory_buffer,
GpuMemoryBufferManager* gpu_memory_buffer_manager,
const gfx::ColorSpace& color_space,
GrSurfaceOrigin surface_origin,
SkAlphaType alpha_type,
uint32_t usage,
base::StringPiece debug_label) {
return CreateSharedImage(gpu_memory_buffer, gpu_memory_buffer_manager,
gfx::BufferPlane::DEFAULT, color_space,
surface_origin, alpha_type, usage, debug_label);
}
void SharedImageInterface::CopyToGpuMemoryBuffer(const SyncToken& sync_token,
const Mailbox& mailbox) {
NOTREACHED();
}
} // namespace gpu