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
f1549132
Unverified
Commit
f1549132
authored
Aug 09, 2018
by
amirh
Committed by
GitHub
Aug 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dartdoc for the TextureLayer's freeze parameter. (#20383)
parent
b2cf1a24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
layer.dart
packages/flutter/lib/src/rendering/layer.dart
+9
-1
No files found.
packages/flutter/lib/src/rendering/layer.dart
View file @
f1549132
...
...
@@ -212,7 +212,8 @@ class PictureLayer extends Layer {
/// for how to create and manage backend textures on iOS.
class
TextureLayer
extends
Layer
{
/// Creates a texture layer bounded by [rect] and with backend texture
/// identified by [textureId].
/// identified by [textureId], if [freeze] is true new texture frames will not be
/// populated to the texture.
TextureLayer
({
@required
this
.
rect
,
@required
this
.
textureId
,
...
...
@@ -225,6 +226,13 @@ class TextureLayer extends Layer {
/// The identity of the backend texture.
final
int
textureId
;
/// When true the texture that will not be updated with new frames.
///
/// This is used when resizing an embedded Android views: When resizing
/// there is a short period during which the framework cannot tell
/// if the newest texture frame has the previous or new size, to workaround this
/// the framework "freezes" the texture just before resizing the Android view and unfreezes
/// it when it is certain that a frame with the new size is ready.
final
bool
freeze
;
@override
...
...
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