Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion flow/layers/layer_raster_cache_item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool LayerRasterCacheItem::Draw(const PaintContext& context,
bool LayerRasterCacheItem::Draw(const PaintContext& context,
DlCanvas* canvas,
const DlPaint* paint) const {
if (!layer_children_id_.has_value() || !context.raster_cache || !canvas) {
if (!context.raster_cache || !canvas) {
return false;
}
switch (cache_state_) {
Expand All @@ -185,6 +185,9 @@ bool LayerRasterCacheItem::Draw(const PaintContext& context,
return context.raster_cache->Draw(key_id_, *canvas, paint);
}
case RasterCacheItem::kChildren: {
if (!layer_children_id_.has_value()) {
return false;
}
return context.raster_cache->Draw(layer_children_id_.value(), *canvas,
paint);
}
Expand Down