#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/video_capture/public/mojom/video_frame_handler.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/video_frame_handler.mojom-params-data.h"
#include "services/video_capture/public/mojom/video_frame_handler.mojom-shared-message-ids.h"
#include "services/video_capture/public/mojom/video_frame_handler.mojom-import-headers.h"
#include "services/video_capture/public/mojom/video_frame_handler.mojom-test-utils.h"
namespace video_capture::mojom {
ReadyFrameInBuffer::ReadyFrameInBuffer()
: … { … }
ReadyFrameInBuffer::ReadyFrameInBuffer(
int32_t buffer_id_in,
int32_t frame_feedback_id_in,
::media::mojom::VideoFrameInfoPtr frame_info_in)
: … { … }
ReadyFrameInBuffer::~ReadyFrameInBuffer() = default;
void ReadyFrameInBuffer::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ReadyFrameInBuffer::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char VideoFrameAccessHandler::Name_[] = …;
VideoFrameAccessHandler::IPCStableHashFunction VideoFrameAccessHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* VideoFrameAccessHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t VideoFrameAccessHandler::OnFinishedConsumingBuffer_Sym::IPCStableHash() { … }
# endif
VideoFrameAccessHandlerProxy::VideoFrameAccessHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void VideoFrameAccessHandlerProxy::OnFinishedConsumingBuffer(
int32_t in_buffer_id) { … }
bool VideoFrameAccessHandlerStubDispatch::Accept(
VideoFrameAccessHandler* impl,
mojo::Message* message) { … }
bool VideoFrameAccessHandlerStubDispatch::AcceptWithResponder(
VideoFrameAccessHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kVideoFrameAccessHandlerValidationInfo[] = …;
bool VideoFrameAccessHandlerRequestValidator::Accept(mojo::Message* message) { … }
const char VideoFrameHandler::Name_[] = …;
VideoFrameHandler::IPCStableHashFunction VideoFrameHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* VideoFrameHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t VideoFrameHandler::OnCaptureConfigurationChanged_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnNewBuffer_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnFrameAccessHandlerReady_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnFrameReadyInBuffer_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnBufferRetired_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnError_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnFrameDropped_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnNewSubCaptureTargetVersion_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnFrameWithEmptyRegionCapture_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnLog_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnStarted_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnStartedUsingGpuDecode_Sym::IPCStableHash() { … }
uint32_t VideoFrameHandler::OnStopped_Sym::IPCStableHash() { … }
# endif
VideoFrameHandlerProxy::VideoFrameHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void VideoFrameHandlerProxy::OnCaptureConfigurationChanged(
) { … }
void VideoFrameHandlerProxy::OnNewBuffer(
int32_t in_buffer_id, ::media::mojom::VideoBufferHandlePtr in_buffer_handle) { … }
void VideoFrameHandlerProxy::OnFrameAccessHandlerReady(
::mojo::PendingRemote<VideoFrameAccessHandler> in_frame_access_handler) { … }
void VideoFrameHandlerProxy::OnFrameReadyInBuffer(
ReadyFrameInBufferPtr in_buffer) { … }
void VideoFrameHandlerProxy::OnBufferRetired(
int32_t in_buffer_id) { … }
void VideoFrameHandlerProxy::OnError(
::media::VideoCaptureError in_error) { … }
void VideoFrameHandlerProxy::OnFrameDropped(
::media::VideoCaptureFrameDropReason in_reason) { … }
void VideoFrameHandlerProxy::OnNewSubCaptureTargetVersion(
uint32_t in_sub_capture_target_version) { … }
void VideoFrameHandlerProxy::OnFrameWithEmptyRegionCapture(
) { … }
void VideoFrameHandlerProxy::OnLog(
const std::string& in_message) { … }
void VideoFrameHandlerProxy::OnStarted(
) { … }
void VideoFrameHandlerProxy::OnStartedUsingGpuDecode(
) { … }
void VideoFrameHandlerProxy::OnStopped(
) { … }
bool VideoFrameHandlerStubDispatch::Accept(
VideoFrameHandler* impl,
mojo::Message* message) { … }
bool VideoFrameHandlerStubDispatch::AcceptWithResponder(
VideoFrameHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kVideoFrameHandlerValidationInfo[] = …;
bool VideoFrameHandlerRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::video_capture::mojom::ReadyFrameInBuffer::DataView, ::video_capture::mojom::ReadyFrameInBufferPtr>::Read(
::video_capture::mojom::ReadyFrameInBuffer::DataView input,
::video_capture::mojom::ReadyFrameInBufferPtr* output) { … }
}
namespace video_capture::mojom {
void VideoFrameAccessHandlerInterceptorForTesting::OnFinishedConsumingBuffer(int32_t buffer_id) { … }
VideoFrameAccessHandlerAsyncWaiter::VideoFrameAccessHandlerAsyncWaiter(
VideoFrameAccessHandler* proxy) : … { … }
VideoFrameAccessHandlerAsyncWaiter::~VideoFrameAccessHandlerAsyncWaiter() = default;
void VideoFrameHandlerInterceptorForTesting::OnCaptureConfigurationChanged() { … }
void VideoFrameHandlerInterceptorForTesting::OnNewBuffer(int32_t buffer_id, ::media::mojom::VideoBufferHandlePtr buffer_handle) { … }
void VideoFrameHandlerInterceptorForTesting::OnFrameAccessHandlerReady(::mojo::PendingRemote<VideoFrameAccessHandler> frame_access_handler) { … }
void VideoFrameHandlerInterceptorForTesting::OnFrameReadyInBuffer(ReadyFrameInBufferPtr buffer) { … }
void VideoFrameHandlerInterceptorForTesting::OnBufferRetired(int32_t buffer_id) { … }
void VideoFrameHandlerInterceptorForTesting::OnError(::media::VideoCaptureError error) { … }
void VideoFrameHandlerInterceptorForTesting::OnFrameDropped(::media::VideoCaptureFrameDropReason reason) { … }
void VideoFrameHandlerInterceptorForTesting::OnNewSubCaptureTargetVersion(uint32_t sub_capture_target_version) { … }
void VideoFrameHandlerInterceptorForTesting::OnFrameWithEmptyRegionCapture() { … }
void VideoFrameHandlerInterceptorForTesting::OnLog(const std::string& message) { … }
void VideoFrameHandlerInterceptorForTesting::OnStarted() { … }
void VideoFrameHandlerInterceptorForTesting::OnStartedUsingGpuDecode() { … }
void VideoFrameHandlerInterceptorForTesting::OnStopped() { … }
VideoFrameHandlerAsyncWaiter::VideoFrameHandlerAsyncWaiter(
VideoFrameHandler* proxy) : … { … }
VideoFrameHandlerAsyncWaiter::~VideoFrameHandlerAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif