Skip to content

Commit

Permalink
support new DlVertices object in dispatcher (flutter#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
flar authored and dnfield committed Apr 27, 2022
1 parent 69334fd commit 6de2c9c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,14 @@ void DisplayListDispatcher::drawPoints(SkCanvas::PointMode mode,
}

// |flutter::Dispatcher|
void DisplayListDispatcher::drawVertices(const sk_sp<SkVertices> vertices,
void DisplayListDispatcher::drawSkVertices(const sk_sp<SkVertices> vertices,
SkBlendMode mode) {
// Needs https://github.com/flutter/flutter/issues/95434
UNIMPLEMENTED;
}

// |flutter::Dispatcher|
void DisplayListDispatcher::drawVertices(const flutter::DlVertices* vertices,
flutter::DlBlendMode mode) {
// Needs https://github.com/flutter/flutter/issues/95434
UNIMPLEMENTED;
Expand Down
6 changes: 5 additions & 1 deletion impeller/display_list/display_list_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ class DisplayListDispatcher final : public flutter::Dispatcher {
const SkPoint points[]) override;

// |flutter::Dispatcher|
void drawVertices(const sk_sp<SkVertices> vertices,
void drawSkVertices(const sk_sp<SkVertices> vertices,
SkBlendMode mode) override;

// |flutter::Dispatcher|
void drawVertices(const flutter::DlVertices* vertices,
flutter::DlBlendMode mode) override;

// |flutter::Dispatcher|
Expand Down

0 comments on commit 6de2c9c

Please sign in to comment.