Skip to content

Commit cd1a5a3

Browse files
flardnfield
authored andcommitted
implement drawDisplayList in impeller dispatcher (flutter#153)
1 parent 5605635 commit cd1a5a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

impeller/display_list/display_list_dispatcher.cc

+6-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,12 @@ void DisplayListDispatcher::drawPicture(const sk_sp<SkPicture> picture,
703703
// |flutter::Dispatcher|
704704
void DisplayListDispatcher::drawDisplayList(
705705
const sk_sp<flutter::DisplayList> display_list) {
706-
UNIMPLEMENTED;
706+
int saveCount = canvas_.GetSaveCount();
707+
Paint savePaint = paint_;
708+
paint_ = Paint();
709+
display_list->Dispatch(*this);
710+
paint_ = savePaint;
711+
canvas_.RestoreToCount(saveCount);
707712
}
708713

709714
// |flutter::Dispatcher|

0 commit comments

Comments
 (0)