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
44d3181d
Unverified
Commit
44d3181d
authored
Aug 20, 2022
by
Jonah Williams
Committed by
GitHub
Aug 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[framework] remove restriction on texture layer rasterization (#109900)
parent
35d9bef9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
layer.dart
packages/flutter/lib/src/rendering/layer.dart
+0
-6
layers_test.dart
packages/flutter/test/rendering/layers_test.dart
+2
-2
No files found.
packages/flutter/lib/src/rendering/layer.dart
View file @
44d3181d
...
...
@@ -887,12 +887,6 @@ class TextureLayer extends Layer {
/// The identity of the backend texture.
final
int
textureId
;
// TODO(jonahwilliams): remove once https://github.com/flutter/flutter/issues/107576 is fixed.
@override
bool
supportsRasterization
()
{
return
false
;
}
/// When true the texture will not be updated with new frames.
///
/// This is used for resizing embedded Android views: when resizing there
...
...
packages/flutter/test/rendering/layers_test.dart
View file @
44d3181d
...
...
@@ -1010,6 +1010,7 @@ void main() {
final
PhysicalModelLayer
physicalModelLayer
=
PhysicalModelLayer
();
final
ColorFilterLayer
colorFilterLayer
=
ColorFilterLayer
();
final
ShaderMaskLayer
shaderMaskLayer
=
ShaderMaskLayer
();
final
TextureLayer
textureLayer
=
TextureLayer
(
rect:
Rect
.
zero
,
textureId:
1
);
expect
(
offsetLayer
.
supportsRasterization
(),
true
);
expect
(
opacityLayer
.
supportsRasterization
(),
true
);
expect
(
clipRectLayer
.
supportsRasterization
(),
true
);
...
...
@@ -1019,12 +1020,11 @@ void main() {
expect
(
physicalModelLayer
.
supportsRasterization
(),
true
);
expect
(
colorFilterLayer
.
supportsRasterization
(),
true
);
expect
(
shaderMaskLayer
.
supportsRasterization
(),
true
);
expect
(
textureLayer
.
supportsRasterization
(),
true
);
// Unsupported.
final
TextureLayer
textureLayer
=
TextureLayer
(
rect:
Rect
.
zero
,
textureId:
1
);
final
PlatformViewLayer
platformViewLayer
=
PlatformViewLayer
(
rect:
Rect
.
zero
,
viewId:
1
);
expect
(
textureLayer
.
supportsRasterization
(),
false
);
expect
(
platformViewLayer
.
supportsRasterization
(),
false
);
});
}
...
...
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