Skip to content

Commit

Permalink
feat(skia): Implement CompositionTarget.Rendering event
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Nov 16, 2020
1 parent 9f386d4 commit 9b19af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public partial class CompositionTarget
}
}
#endif
#if false || false || NET461 || false || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false || false || NET461 || false || false || __NETSTD_REFERENCE__ || __MACOS__
[global::Uno.NotImplemented("NET461", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public static event global::System.EventHandler<object> Rendering
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public partial class CompositionTarget
var currentlyRaisingEvents = CoreDispatcher.Main.ShouldRaiseRenderEvents;
CoreDispatcher.Main.Rendering += value;
CoreDispatcher.Main.RenderEventThrottle = FeatureConfiguration.CompositionTarget.RenderEventThrottle;
CoreDispatcher.Main.RenderingEventArgsGenerator = CoreDispatcher.Main.RenderingEventArgsGenerator
?? (d => new RenderingEventArgs(d));
CoreDispatcher.Main.RenderingEventArgsGenerator ??= (d => new RenderingEventArgs(d));
if (!currentlyRaisingEvents)
{
CoreDispatcher.Main.WakeUp();
Expand Down

0 comments on commit 9b19af3

Please sign in to comment.