Skip to content

Commit

Permalink
SkiaLayerAnalytics. Rendering logging (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn authored Jan 20, 2025
1 parent 9e73ff1 commit 5261d52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ internal abstract class AWTRedrawer(
if (!isFirstFrameRendered) {
deviceAnalytics?.beforeFirstFrameRender()
}
deviceAnalytics?.beforeFrameRender()
layer.inDrawScope(body)
if (!isFirstFrameRendered && !isDisposed) {
deviceAnalytics?.afterFirstFrameRender()
}
deviceAnalytics?.afterFrameRender()
isFirstFrameRendered = true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ interface SkiaLayerAnalytics {
fun contextInit() = Unit
fun beforeFirstFrameRender() = Unit
fun afterFirstFrameRender() = Unit
fun beforeFrameRender() = Unit
fun afterFrameRender() = Unit

companion object {
val Empty = object : DeviceAnalytics {}
Expand Down

0 comments on commit 5261d52

Please sign in to comment.