-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix font memory issues #211
Conversation
We could probably also cherry-pick the velocity bug fix as well as the loop yoyo fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Try to see if we can throw Javascript errors instead of asserting in the constructor
: JsiSkWrappingSkPtrHostObject(context, contourMeasure){}; | ||
const sk_sp<SkContourMeasure> contourMeasure) | ||
: JsiSkWrappingSkPtrHostObject(context, contourMeasure) { | ||
assert(contourMeasure != nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we throw a JS error - this assert will just make the app unexpectedly quit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thankfully the only call to this constructor checks for null pointer. but update the code to throw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Cherry-picked from the animation branch