Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf18765e

Browse files
csnewmandvc94ch
authored andcommitted
Make frame destructor send
1 parentd33b1b1 commitf18765e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎flutter-engine/src/texture_registry.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ pub struct Texture {
5858
frames:Arc<Mutex<HashMap<TextureId,TextureFrame>>>,
5959
}
6060

61-
//unsafe impl Send for Texture {}
62-
//unsafe impl Sync for Texture {}
63-
6461
implTexture{
6562
pubfnid(&self) ->TextureId{
6663
self.texture_id
@@ -149,7 +146,7 @@ impl Drop for Texture {
149146
}
150147
}
151148

152-
typeDestructorType =Box<dynFnOnce()>;
149+
typeDestructorType =Box<dynFnOnce() +Send>;
153150

154151
pubstructTextureFrame{
155152
pubtarget:u32,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp