#include "third_party/blink/renderer/platform/graphics/memory_managed_paint_canvas.h"
#include "base/memory/ptr_util.h"
namespace blink {
MemoryManagedPaintCanvas::MemoryManagedPaintCanvas(const gfx::Size& size)
: … { … }
MemoryManagedPaintCanvas::MemoryManagedPaintCanvas(
CreateChildCanvasTag,
const MemoryManagedPaintCanvas& parent)
: … { … }
MemoryManagedPaintCanvas::~MemoryManagedPaintCanvas() = default;
std::unique_ptr<MemoryManagedPaintCanvas>
MemoryManagedPaintCanvas::CreateChildCanvas() { … }
cc::PaintRecord MemoryManagedPaintCanvas::ReleaseAsRecord() { … }
void MemoryManagedPaintCanvas::drawImage(const cc::PaintImage& image,
SkScalar left,
SkScalar top,
const SkSamplingOptions& sampling,
const cc::PaintFlags* flags) { … }
void MemoryManagedPaintCanvas::drawImageRect(
const cc::PaintImage& image,
const SkRect& src,
const SkRect& dst,
const SkSamplingOptions& sampling,
const cc::PaintFlags* flags,
SkCanvas::SrcRectConstraint constraint) { … }
void MemoryManagedPaintCanvas::UpdateMemoryUsage(const cc::PaintImage& image) { … }
bool MemoryManagedPaintCanvas::IsCachingImage(
const cc::PaintImage::ContentId content_id) const { … }
}