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
a03d0a59
Unverified
Commit
a03d0a59
authored
Jun 13, 2024
by
Ivan Matkov
Committed by
GitHub
Jun 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow paint before showing (#941)
Fix compose tests after #923
parent
3e41541e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
SkiaLayer.awt.kt
...o/src/awtMain/kotlin/org/jetbrains/skiko/SkiaLayer.awt.kt
+1
-3
No files found.
skiko/src/awtMain/kotlin/org/jetbrains/skiko/SkiaLayer.awt.kt
View file @
a03d0a59
...
...
@@ -335,15 +335,13 @@ actual open class SkiaLayer internal constructor(
//
// Please note that calling redraw during layout might break software renderers,
// so applying this fix only for Direct3D case.
if
(
renderApi
==
GraphicsApi
.
DIRECT3D
)
{
if
(
renderApi
==
GraphicsApi
.
DIRECT3D
&&
isShowing
)
{
redrawer
?.
syncSize
()
tryRedrawImmediately
()
}
}
private
fun
tryRedrawImmediately
()
{
if
(!
isShowing
)
return
// It might be called inside `renderDelegate`,
// so to avoid recursive call (not supported) just schedule redrawing.
//
...
...
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