#include "third_party/blink/renderer/core/html/canvas/image_data.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_image_bitmap_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_float32array_uint16array_uint8clampedarray.h"
#include "third_party/blink/renderer/core/html/canvas/predefined_color_space.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "v8/include/v8.h"
namespace blink {
ImageData* ImageData::ValidateAndCreate(
unsigned width,
std::optional<unsigned> height,
std::optional<NotShared<DOMArrayBufferView>> data,
const ImageDataSettings* settings,
ValidateAndCreateParams params,
ExceptionState& exception_state) { … }
NotShared<DOMArrayBufferView> ImageData::AllocateAndValidateDataArray(
const unsigned& length,
ImageDataStorageFormat storage_format,
bool zero_initialize,
ExceptionState& exception_state) { … }
ImageData* ImageData::CreateForTest(const gfx::Size& size) { … }
ImageData* ImageData::CreateForTest(const gfx::Size& size,
NotShared<DOMArrayBufferView> buffer_view,
PredefinedColorSpace color_space,
ImageDataStorageFormat storage_format) { … }
ScriptPromise<ImageBitmap> ImageData::CreateImageBitmap(
ScriptState* script_state,
std::optional<gfx::Rect> crop_rect,
const ImageBitmapOptions* options,
ExceptionState& exception_state) { … }
PredefinedColorSpace ImageData::GetPredefinedColorSpace() const { … }
ImageDataStorageFormat ImageData::GetImageDataStorageFormat() const { … }
String ImageData::colorSpace() const { … }
String ImageData::storageFormat() const { … }
bool ImageData::IsBufferBaseDetached() const { … }
SkPixmap ImageData::GetSkPixmap() const { … }
void ImageData::Trace(Visitor* visitor) const { … }
v8::Local<v8::Object> ImageData::AssociateWithWrapper(
v8::Isolate* isolate,
const WrapperTypeInfo* wrapper_type_info,
v8::Local<v8::Object> wrapper) { … }
ImageData::ImageData(const gfx::Size& size,
NotShared<DOMArrayBufferView> data,
PredefinedColorSpace color_space,
ImageDataStorageFormat storage_format)
: … { … }
}