-
Notifications
You must be signed in to change notification settings - Fork 290
Removed Completed
event from AsyncEffectRenderer
#1312
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
Removed Completed
event from AsyncEffectRenderer
#1312
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.
To be safe since a lot of code is shifting around here, I'm going to leave reviewing this for after getting Pinta 3.0 released
// Create live preview surface. | ||
// Start rendering. | ||
// Listen for changes to effectConfiguration object, and restart render if needed. | ||
// Handle selection path. |
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.
I think this comment went along with the code (now further down) for initializing the render bounds from the selection. It's not a particularly useful comment though
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.
Yeah, that's fair that we want to leave it until after Pinta 3.0.
Also, thanks @cameronwhite for noticing. I removed the comment (which the commit message says is "irrelevant" but should've been "unnecessary").
…_completion_event
…_completion_event
…_completion_event
…_completion_event
The callback mess was untangled and the code is now sequential and easier to follow.
Next, we might want to address the
Update
event and then actually create aRenderHandle
class, as discussed in #1009 (comment), but that's a topic for a future pull request. I already tinkered with it, and it is less straightforward than it appears to be due toEffectData_PropertyChanged
, which I think has to be moved out ofLivePreviewManager
, and itsStart
method needs to be able to be canceled externally through aCancellationToken
passed as an argument.