#include "third_party/blink/renderer/modules/canvas/imagebitmap/image_bitmap_rendering_context_base.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_htmlcanvaselement_offscreencanvas.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.h"
#include "third_party/blink/renderer/platform/graphics/canvas_resource_provider.h"
#include "third_party/blink/renderer/platform/graphics/gpu/image_layer_bridge.h"
#include "third_party/blink/renderer/platform/graphics/gpu/shared_gpu_context.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
#include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSurface.h"
namespace blink {
ImageBitmapRenderingContextBase::ImageBitmapRenderingContextBase(
CanvasRenderingContextHost* host,
const CanvasContextCreationAttributesCore& attrs)
: … { … }
ImageBitmapRenderingContextBase::~ImageBitmapRenderingContextBase() = default;
V8UnionHTMLCanvasElementOrOffscreenCanvas*
ImageBitmapRenderingContextBase::getHTMLOrOffscreenCanvas() const { … }
void ImageBitmapRenderingContextBase::Reset() { … }
void ImageBitmapRenderingContextBase::Stop() { … }
void ImageBitmapRenderingContextBase::Dispose() { … }
void ImageBitmapRenderingContextBase::ResetInternalBitmapToBlackTransparent(
int width,
int height) { … }
void ImageBitmapRenderingContextBase::SetImage(ImageBitmap* image_bitmap) { … }
scoped_refptr<StaticBitmapImage> ImageBitmapRenderingContextBase::GetImage(
FlushReason) { … }
scoped_refptr<StaticBitmapImage>
ImageBitmapRenderingContextBase::GetImageAndResetInternal() { … }
void ImageBitmapRenderingContextBase::SetUV(const gfx::PointF& left_top,
const gfx::PointF& right_bottom) { … }
void ImageBitmapRenderingContextBase::SetFilterQuality(
cc::PaintFlags::FilterQuality filter_quality) { … }
cc::Layer* ImageBitmapRenderingContextBase::CcLayer() const { … }
bool ImageBitmapRenderingContextBase::IsPaintable() const { … }
void ImageBitmapRenderingContextBase::Trace(Visitor* visitor) const { … }
bool ImageBitmapRenderingContextBase::CanCreateCanvas2dResourceProvider()
const { … }
bool ImageBitmapRenderingContextBase::PushFrame() { … }
bool ImageBitmapRenderingContextBase::IsOriginTopLeft() const { … }
}