5#ifndef FLUTTER_FLOW_LAYERS_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
6#define FLUTTER_FLOW_LAYERS_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
13#include "flutter/display_list/display_list.h"
14#include "flutter/flow/embedded_views.h"
15#include "flutter/flow/raster_cache_item.h"
25 bool is_complex =
true,
26 bool will_change =
false);
28 static std::unique_ptr<DisplayListRasterCacheItem>
Make(
46 bool parent_cached =
false)
const override;
66class DisplayListRasterCacheItem;
SkMatrix & preTranslate(SkScalar dx, SkScalar dy)
bool TryToPrepareRasterCache(const PaintContext &context, bool parent_cached=false) const override
static std::unique_ptr< DisplayListRasterCacheItem > Make(const sk_sp< DisplayList > &, const SkPoint &offset, bool is_complex, bool will_change)
void PrerollSetup(PrerollContext *context, const SkMatrix &matrix) override
DisplayListRasterCacheItem(const sk_sp< DisplayList > &display_list, const SkPoint &offset, bool is_complex=true, bool will_change=false)
const DisplayList * display_list() const
void ModifyMatrix(SkPoint offset) const
void PrerollFinalize(PrerollContext *context, const SkMatrix &matrix) override
bool Draw(const PaintContext &context, const DlPaint *paint) const override
Developer-facing API for rendering anything within the engine.
unsigned useCenter Optional< SkMatrix > matrix