Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
4c99e1d3
Commit
4c99e1d3
authored
Mar 31, 2021
by
Igor Demin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SkiaWindowPerfomanceTest. Fix compilation issue
parent
6e79a5c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
73 deletions
+73
-73
SkiaWindowPerformanceTest.kt
...t/kotlin/org/jetbrains/skiko/SkiaWindowPerformanceTest.kt
+73
-73
No files found.
samples/SkijaInjectSample/src/test/kotlin/org/jetbrains/skiko/SkiaWindowPerformanceTest.kt
View file @
4c99e1d3
...
...
@@ -44,9 +44,7 @@ native crash in SkiaWindowTest "render single window"
// .popStyle()
// .build()
@Test
fun
`
FPS
is
near
display
refresh
rate
(
multiple
windows
)
`
()
=
swingTest
{
class
TestWindow
(
private
class
TestWindow
(
width
:
Int
,
height
:
Int
,
private
val
frameCount
:
Int
,
...
...
@@ -126,12 +124,14 @@ native crash in SkiaWindowTest "render single window"
}
}
suspend
fun
awaitFrameCollection
(
windows
:
List
<
TestWindow
>)
{
private
suspend
fun
awaitFrameCollection
(
windows
:
List
<
TestWindow
>)
{
while
(!
windows
.
all
(
TestWindow
::
isCollected
))
{
delay
(
100
)
}
}
@Test
fun
`
FPS
is
near
display
refresh
rate
(
multiple
windows
)
`
()
=
swingTest
{
val
windows
=
(
1
..
3
).
map
{
index
->
TestWindow
(
width
=
40
,
height
=
20
,
frameCount
=
300
,
deviatedTerminalCount
=
10
).
apply
{
location
=
Point
((
index
+
1
)
*
200
,
200
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment