Skip to content

Commit

Permalink
Apply SmoothPointerDataDispatcher to Fuchsia (#14514)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuqian committed Dec 17, 2019
1 parent 5f9e558 commit dc59758
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shell/platform/fuchsia/flutter/platform_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,4 +766,10 @@ void PlatformView::HandleFlutterPlatformViewsChannelPlatformMessage(
}
}

flutter::PointerDataDispatcherMaker PlatformView::GetDispatcherMaker() {
return [](flutter::DefaultPointerDataDispatcher::Delegate& delegate) {
return std::make_unique<flutter::SmoothPointerDataDispatcher>(delegate);
};
}

} // namespace flutter_runner
3 changes: 3 additions & 0 deletions shell/platform/fuchsia/flutter/platform_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class PlatformView final : public flutter::PlatformView,
// |flutter_runner::AccessibilityBridge::Delegate|
void SetSemanticsEnabled(bool enabled) override;

// |PlatformView|
flutter::PointerDataDispatcherMaker GetDispatcherMaker() override;

private:
const std::string debug_label_;
// TODO(MI4-2490): remove once ViewRefControl is passed to Scenic and kept
Expand Down

0 comments on commit dc59758

Please sign in to comment.