#include "third_party/blink/renderer/core/messaging/blink_transferable_message_mojom_traits.h"
#include "mojo/public/cpp/base/big_buffer_mojom_traits.h"
#include "skia/ext/skia_utils_base.h"
#include "third_party/blink/public/mojom/messaging/static_bitmap_image.mojom-blink.h"
#include "third_party/blink/public/mojom/messaging/transferable_message.mojom-blink.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace mojo {
namespace {
std::optional<SkBitmap> ToSkBitmapN32(
const scoped_refptr<blink::StaticBitmapImage>& static_bitmap_image) { … }
blink::mojom::blink::SerializedStaticBitmapImagePtr
ToSerializedAcceleratedImage(
scoped_refptr<blink::StaticBitmapImage> static_bitmap_image) { … }
}
Vector<blink::mojom::blink::SerializedStaticBitmapImagePtr>
StructTraits<blink::mojom::blink::TransferableMessage::DataView,
blink::BlinkTransferableMessage>::
image_bitmap_contents_array(const blink::BlinkCloneableMessage& input) { … }
bool StructTraits<blink::mojom::blink::TransferableMessage::DataView,
blink::BlinkTransferableMessage>::
Read(blink::mojom::blink::TransferableMessage::DataView data,
blink::BlinkTransferableMessage* out) { … }
bool StructTraits<blink::mojom::blink::SerializedArrayBufferContents::DataView,
blink::ArrayBufferContents>::
Read(blink::mojom::blink::SerializedArrayBufferContents::DataView data,
blink::ArrayBufferContents* out) { … }
}