Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
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
abdullh.alsoleman
Front-End
Commits
7518a146
Unverified
Commit
7518a146
authored
Jun 26, 2020
by
Yegor
Committed by
GitHub
Jun 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not call Picture.toImage on web during shader warm-up (#60379)
parent
76946829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
shader_warm_up.dart
packages/flutter/lib/src/painting/shader_warm_up.dart
+4
-1
No files found.
packages/flutter/lib/src/painting/shader_warm_up.dart
View file @
7518a146
...
@@ -91,7 +91,10 @@ abstract class ShaderWarmUp {
...
@@ -91,7 +91,10 @@ abstract class ShaderWarmUp {
final
ui
.
Picture
picture
=
recorder
.
endRecording
();
final
ui
.
Picture
picture
=
recorder
.
endRecording
();
final
TimelineTask
shaderWarmUpTask
=
TimelineTask
();
final
TimelineTask
shaderWarmUpTask
=
TimelineTask
();
shaderWarmUpTask
.
start
(
'Warm-up shader'
);
shaderWarmUpTask
.
start
(
'Warm-up shader'
);
await
picture
.
toImage
(
size
.
width
.
ceil
(),
size
.
height
.
ceil
());
// Picture.toImage is not yet implemented on the web.
if
(!
kIsWeb
)
{
await
picture
.
toImage
(
size
.
width
.
ceil
(),
size
.
height
.
ceil
());
}
shaderWarmUpTask
.
finish
();
shaderWarmUpTask
.
finish
();
}
}
}
}
...
...
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