#include "third_party/blink/renderer/modules/csspaint/css_paint_image_generator_impl.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/csspaint/css_paint_definition.h"
#include "third_party/blink/renderer/modules/csspaint/document_paint_definition.h"
#include "third_party/blink/renderer/modules/csspaint/paint_worklet.h"
#include "third_party/blink/renderer/platform/graphics/image.h"
namespace blink {
CSSPaintImageGenerator* CSSPaintImageGeneratorImpl::Create(
const String& name,
const Document& document,
Observer* observer) { … }
CSSPaintImageGeneratorImpl::CSSPaintImageGeneratorImpl(
PaintWorklet* paint_worklet,
const String& name)
: … { … }
CSSPaintImageGeneratorImpl::CSSPaintImageGeneratorImpl(
Observer* observer,
PaintWorklet* paint_worklet,
const String& name)
: … { … }
CSSPaintImageGeneratorImpl::~CSSPaintImageGeneratorImpl() = default;
void CSSPaintImageGeneratorImpl::NotifyGeneratorReady() { … }
scoped_refptr<Image> CSSPaintImageGeneratorImpl::Paint(
const ImageResourceObserver& observer,
const gfx::SizeF& container_size,
const CSSStyleValueVector* data) { … }
bool CSSPaintImageGeneratorImpl::HasDocumentDefinition() const { … }
bool CSSPaintImageGeneratorImpl::GetValidDocumentDefinition(
DocumentPaintDefinition*& definition) const { … }
unsigned CSSPaintImageGeneratorImpl::GetRegisteredDefinitionCountForTesting()
const { … }
const Vector<CSSPropertyID>&
CSSPaintImageGeneratorImpl::NativeInvalidationProperties() const { … }
const Vector<AtomicString>&
CSSPaintImageGeneratorImpl::CustomInvalidationProperties() const { … }
bool CSSPaintImageGeneratorImpl::HasAlpha() const { … }
const Vector<CSSSyntaxDefinition>&
CSSPaintImageGeneratorImpl::InputArgumentTypes() const { … }
bool CSSPaintImageGeneratorImpl::IsImageGeneratorReady() const { … }
int CSSPaintImageGeneratorImpl::WorkletId() const { … }
void CSSPaintImageGeneratorImpl::Trace(Visitor* visitor) const { … }
}