#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-blink.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 "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-params-data.h"
#include "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
#include "third_party/blink/public/common/messaging/accelerated_static_bitmap_image_mojom_traits.h"
namespace blink::mojom::blink {
AcceleratedStaticBitmapImage::AcceleratedStaticBitmapImage()
: … { … }
AcceleratedStaticBitmapImage::AcceleratedStaticBitmapImage(
const ::gpu::MailboxHolder& mailbox_holder_in,
uint32_t usage_in,
const ::SkImageInfo& image_info_in,
bool is_origin_top_left_in,
bool supports_display_compositing_in,
bool is_overlay_candidate_in,
::mojo::PendingRemote<ImageReleaseCallback> release_callback_in)
: … { … }
AcceleratedStaticBitmapImage::~AcceleratedStaticBitmapImage() = default;
void AcceleratedStaticBitmapImage::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AcceleratedStaticBitmapImage::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerializedStaticBitmapImage::SerializedStaticBitmapImage() : … { … }
SerializedStaticBitmapImage::~SerializedStaticBitmapImage() { … }
void SerializedStaticBitmapImage::set_bitmap(
const ::SkBitmap& bitmap) { … }
void SerializedStaticBitmapImage::set_accelerated_image(
::blink::AcceleratedImageInfo accelerated_image) { … }
void SerializedStaticBitmapImage::DestroyActive() { … }
bool SerializedStaticBitmapImage::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char ImageReleaseCallback::Name_[] = …;
ImageReleaseCallback::IPCStableHashFunction ImageReleaseCallback::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ImageReleaseCallback::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ImageReleaseCallback::Release_Sym::IPCStableHash() { … }
# endif
ImageReleaseCallbackProxy::ImageReleaseCallbackProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ImageReleaseCallbackProxy::Release(
const ::gpu::SyncToken& in_token) { … }
bool ImageReleaseCallbackStubDispatch::Accept(
ImageReleaseCallback* impl,
mojo::Message* message) { … }
bool ImageReleaseCallbackStubDispatch::AcceptWithResponder(
ImageReleaseCallback* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kImageReleaseCallbackValidationInfo[] = …;
bool ImageReleaseCallbackRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::AcceleratedStaticBitmapImage::DataView, ::blink::mojom::blink::AcceleratedStaticBitmapImagePtr>::Read(
::blink::mojom::blink::AcceleratedStaticBitmapImage::DataView input,
::blink::mojom::blink::AcceleratedStaticBitmapImagePtr* output) { … }
bool UnionTraits<::blink::mojom::blink::SerializedStaticBitmapImage::DataView, ::blink::mojom::blink::SerializedStaticBitmapImagePtr>::Read(
::blink::mojom::blink::SerializedStaticBitmapImage::DataView input,
::blink::mojom::blink::SerializedStaticBitmapImagePtr* output) { … }
}
namespace blink::mojom::blink {
void ImageReleaseCallbackInterceptorForTesting::Release(const ::gpu::SyncToken& token) { … }
ImageReleaseCallbackAsyncWaiter::ImageReleaseCallbackAsyncWaiter(
ImageReleaseCallback* proxy) : … { … }
ImageReleaseCallbackAsyncWaiter::~ImageReleaseCallbackAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif