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
5bbf0d89
Commit
5bbf0d89
authored
Aug 11, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #570 from abarth/paint_once
Don't paint twice
parents
1ca858b9
88eba915
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
box.dart
packages/flutter/lib/rendering/box.dart
+0
-2
object.dart
packages/flutter/lib/rendering/object.dart
+3
-1
No files found.
packages/flutter/lib/rendering/box.dart
View file @
5bbf0d89
...
...
@@ -1678,8 +1678,6 @@ class ViewConstraints {
}
class
RenderView
extends
RenderObject
with
RenderObjectWithChildMixin
<
RenderBox
>
{
bool
get
createNewDisplayList
=>
true
;
RenderView
({
RenderBox
child
,
this
.
timeForRotation
:
const
Duration
(
microseconds:
83333
)
...
...
packages/flutter/lib/rendering/object.dart
View file @
5bbf0d89
...
...
@@ -164,7 +164,6 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
return
true
;
});
_nodesNeedingLayout
.
add
(
this
);
_nodesNeedingPaint
.
add
(
this
);
scheduler
.
ensureVisualUpdate
();
}
static
void
flushLayout
()
{
...
...
@@ -331,6 +330,9 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
_needsPaint
=
true
;
_nodesNeedingPaint
.
add
(
this
);
scheduler
.
ensureVisualUpdate
();
}
else
if
(
parent
==
null
)
{
_needsPaint
=
true
;
scheduler
.
ensureVisualUpdate
();
}
else
{
assert
(
parent
!=
null
);
// parent always exists on this path because the root node is a RenderView, which sets createNewDisplayList.
if
(
parent
is
RenderObject
)
{
...
...
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