Skip to content

Commit

Permalink
implement drawDisplayList in impeller dispatcher (flutter#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
flar authored and dnfield committed Apr 27, 2022
1 parent 5605635 commit cd1a5a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,12 @@ void DisplayListDispatcher::drawPicture(const sk_sp<SkPicture> picture,
// |flutter::Dispatcher|
void DisplayListDispatcher::drawDisplayList(
const sk_sp<flutter::DisplayList> display_list) {
UNIMPLEMENTED;
int saveCount = canvas_.GetSaveCount();
Paint savePaint = paint_;
paint_ = Paint();
display_list->Dispatch(*this);
paint_ = savePaint;
canvas_.RestoreToCount(saveCount);
}

// |flutter::Dispatcher|
Expand Down

0 comments on commit cd1a5a3

Please sign in to comment.