-
Notifications
You must be signed in to change notification settings - Fork 207
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
Preliminary work ahead of threading support #753
Conversation
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.
Overall LGTM.
libass/ass_render.c
Outdated
@@ -76,6 +76,29 @@ static void text_info_done(TextInfo* text_info) | |||
free(text_info->combined_bitmaps); | |||
} | |||
|
|||
static bool setup_render_context(RenderContext *state, ASS_Renderer *priv) |
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.
Maybe it's better to rename into render_context_init
for uniformity?
libass/ass_compat.h
Outdated
@@ -43,4 +43,15 @@ char *ass_strndup_fallback(const char *s, size_t n); // definition in ass_utils. | |||
#define strndup ass_strndup_fallback | |||
#endif | |||
|
|||
#if defined(_WIN32) |
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.
This could be an #ifdef
.
7c7fa7b
to
8b1cfb4
Compare
Extracted from #636. These are infrastructural changes that don't directly involve multithreading, but either were necessary for its implementation or came about during the work. Best reviewed commit-by-commit.