#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/video_capture/public/mojom/virtual_device.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/video_capture/public/mojom/virtual_device.mojom-params-data.h"
#include "services/video_capture/public/mojom/virtual_device.mojom-shared-message-ids.h"
#include "services/video_capture/public/mojom/virtual_device.mojom-import-headers.h"
#include "services/video_capture/public/mojom/virtual_device.mojom-test-utils.h"
namespace video_capture::mojom {
const char SharedMemoryVirtualDevice::Name_[] = …;
SharedMemoryVirtualDevice::IPCStableHashFunction SharedMemoryVirtualDevice::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SharedMemoryVirtualDevice::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SharedMemoryVirtualDevice::RequestFrameBuffer_Sym::IPCStableHash() { … }
uint32_t SharedMemoryVirtualDevice::OnFrameReadyInBuffer_Sym::IPCStableHash() { … }
# endif
class SharedMemoryVirtualDevice_RequestFrameBuffer_ForwardToCallback
: public mojo::MessageReceiver { … };
SharedMemoryVirtualDeviceProxy::SharedMemoryVirtualDeviceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SharedMemoryVirtualDeviceProxy::RequestFrameBuffer(
const ::gfx::Size& in_dimension, ::media::VideoPixelFormat in_pixel_format, ::media::mojom::PlaneStridesPtr in_strides, RequestFrameBufferCallback callback) { … }
void SharedMemoryVirtualDeviceProxy::OnFrameReadyInBuffer(
int32_t in_buffer_id, ::media::mojom::VideoFrameInfoPtr in_frame_info) { … }
class SharedMemoryVirtualDevice_RequestFrameBuffer_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SharedMemoryVirtualDevice_RequestFrameBuffer_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SharedMemoryVirtualDevice_RequestFrameBuffer_ProxyToResponder::Run(
int32_t in_buffer_id) { … }
bool SharedMemoryVirtualDeviceStubDispatch::Accept(
SharedMemoryVirtualDevice* impl,
mojo::Message* message) { … }
bool SharedMemoryVirtualDeviceStubDispatch::AcceptWithResponder(
SharedMemoryVirtualDevice* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSharedMemoryVirtualDeviceValidationInfo[] = …;
bool SharedMemoryVirtualDeviceRequestValidator::Accept(mojo::Message* message) { … }
bool SharedMemoryVirtualDeviceResponseValidator::Accept(mojo::Message* message) { … }
const char TextureVirtualDevice::Name_[] = …;
TextureVirtualDevice::IPCStableHashFunction TextureVirtualDevice::MessageToMethodInfo_(mojo::Message& message) { … }
const char* TextureVirtualDevice::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t TextureVirtualDevice::OnNewSharedImageBufferHandle_Sym::IPCStableHash() { … }
uint32_t TextureVirtualDevice::OnFrameAccessHandlerReady_Sym::IPCStableHash() { … }
uint32_t TextureVirtualDevice::OnFrameReadyInBuffer_Sym::IPCStableHash() { … }
uint32_t TextureVirtualDevice::OnBufferRetired_Sym::IPCStableHash() { … }
# endif
TextureVirtualDeviceProxy::TextureVirtualDeviceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void TextureVirtualDeviceProxy::OnNewSharedImageBufferHandle(
int32_t in_buffer_id, ::media::mojom::SharedImageBufferHandleSetPtr in_shared_image_handle) { … }
void TextureVirtualDeviceProxy::OnFrameAccessHandlerReady(
::mojo::PendingRemote<::video_capture::mojom::VideoFrameAccessHandler> in_frame_access_handler) { … }
void TextureVirtualDeviceProxy::OnFrameReadyInBuffer(
int32_t in_buffer_id, ::media::mojom::VideoFrameInfoPtr in_frame_info) { … }
void TextureVirtualDeviceProxy::OnBufferRetired(
int32_t in_buffer_id) { … }
bool TextureVirtualDeviceStubDispatch::Accept(
TextureVirtualDevice* impl,
mojo::Message* message) { … }
bool TextureVirtualDeviceStubDispatch::AcceptWithResponder(
TextureVirtualDevice* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kTextureVirtualDeviceValidationInfo[] = …;
bool TextureVirtualDeviceRequestValidator::Accept(mojo::Message* message) { … }
const char GpuMemoryBufferVirtualDevice::Name_[] = …;
GpuMemoryBufferVirtualDevice::IPCStableHashFunction GpuMemoryBufferVirtualDevice::MessageToMethodInfo_(mojo::Message& message) { … }
const char* GpuMemoryBufferVirtualDevice::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t GpuMemoryBufferVirtualDevice::OnNewGpuMemoryBufferHandle_Sym::IPCStableHash() { … }
uint32_t GpuMemoryBufferVirtualDevice::OnFrameAccessHandlerReady_Sym::IPCStableHash() { … }
uint32_t GpuMemoryBufferVirtualDevice::OnFrameReadyInBuffer_Sym::IPCStableHash() { … }
uint32_t GpuMemoryBufferVirtualDevice::OnBufferRetired_Sym::IPCStableHash() { … }
# endif
GpuMemoryBufferVirtualDeviceProxy::GpuMemoryBufferVirtualDeviceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void GpuMemoryBufferVirtualDeviceProxy::OnNewGpuMemoryBufferHandle(
int32_t in_buffer_id, ::gfx::GpuMemoryBufferHandle in_gmb_handle) { … }
void GpuMemoryBufferVirtualDeviceProxy::OnFrameAccessHandlerReady(
::mojo::PendingRemote<::video_capture::mojom::VideoFrameAccessHandler> in_frame_access_handler) { … }
void GpuMemoryBufferVirtualDeviceProxy::OnFrameReadyInBuffer(
int32_t in_buffer_id, ::media::mojom::VideoFrameInfoPtr in_frame_info) { … }
void GpuMemoryBufferVirtualDeviceProxy::OnBufferRetired(
int32_t in_buffer_id) { … }
bool GpuMemoryBufferVirtualDeviceStubDispatch::Accept(
GpuMemoryBufferVirtualDevice* impl,
mojo::Message* message) { … }
bool GpuMemoryBufferVirtualDeviceStubDispatch::AcceptWithResponder(
GpuMemoryBufferVirtualDevice* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kGpuMemoryBufferVirtualDeviceValidationInfo[] = …;
bool GpuMemoryBufferVirtualDeviceRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace video_capture::mojom {
void SharedMemoryVirtualDeviceInterceptorForTesting::RequestFrameBuffer(const ::gfx::Size& dimension, ::media::VideoPixelFormat pixel_format, ::media::mojom::PlaneStridesPtr strides, RequestFrameBufferCallback callback) { … }
void SharedMemoryVirtualDeviceInterceptorForTesting::OnFrameReadyInBuffer(int32_t buffer_id, ::media::mojom::VideoFrameInfoPtr frame_info) { … }
SharedMemoryVirtualDeviceAsyncWaiter::SharedMemoryVirtualDeviceAsyncWaiter(
SharedMemoryVirtualDevice* proxy) : … { … }
SharedMemoryVirtualDeviceAsyncWaiter::~SharedMemoryVirtualDeviceAsyncWaiter() = default;
void SharedMemoryVirtualDeviceAsyncWaiter::RequestFrameBuffer(
const ::gfx::Size& dimension, ::media::VideoPixelFormat pixel_format, ::media::mojom::PlaneStridesPtr strides, int32_t* out_buffer_id) { … }
int32_t SharedMemoryVirtualDeviceAsyncWaiter::RequestFrameBuffer(
const ::gfx::Size& dimension, ::media::VideoPixelFormat pixel_format, ::media::mojom::PlaneStridesPtr strides) { … }
void TextureVirtualDeviceInterceptorForTesting::OnNewSharedImageBufferHandle(int32_t buffer_id, ::media::mojom::SharedImageBufferHandleSetPtr shared_image_handle) { … }
void TextureVirtualDeviceInterceptorForTesting::OnFrameAccessHandlerReady(::mojo::PendingRemote<::video_capture::mojom::VideoFrameAccessHandler> frame_access_handler) { … }
void TextureVirtualDeviceInterceptorForTesting::OnFrameReadyInBuffer(int32_t buffer_id, ::media::mojom::VideoFrameInfoPtr frame_info) { … }
void TextureVirtualDeviceInterceptorForTesting::OnBufferRetired(int32_t buffer_id) { … }
TextureVirtualDeviceAsyncWaiter::TextureVirtualDeviceAsyncWaiter(
TextureVirtualDevice* proxy) : … { … }
TextureVirtualDeviceAsyncWaiter::~TextureVirtualDeviceAsyncWaiter() = default;
void GpuMemoryBufferVirtualDeviceInterceptorForTesting::OnNewGpuMemoryBufferHandle(int32_t buffer_id, ::gfx::GpuMemoryBufferHandle gmb_handle) { … }
void GpuMemoryBufferVirtualDeviceInterceptorForTesting::OnFrameAccessHandlerReady(::mojo::PendingRemote<::video_capture::mojom::VideoFrameAccessHandler> frame_access_handler) { … }
void GpuMemoryBufferVirtualDeviceInterceptorForTesting::OnFrameReadyInBuffer(int32_t buffer_id, ::media::mojom::VideoFrameInfoPtr frame_info) { … }
void GpuMemoryBufferVirtualDeviceInterceptorForTesting::OnBufferRetired(int32_t buffer_id) { … }
GpuMemoryBufferVirtualDeviceAsyncWaiter::GpuMemoryBufferVirtualDeviceAsyncWaiter(
GpuMemoryBufferVirtualDevice* proxy) : … { … }
GpuMemoryBufferVirtualDeviceAsyncWaiter::~GpuMemoryBufferVirtualDeviceAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif