Closed
Bug 1006579
Opened 11 years ago
Closed 11 years ago
The AboutToCheckerboard code for progressive updates often returns true instead of false
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(2 files)
3.40 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
1.54 KB,
patch
|
cwiiis
:
review+
|
Details | Diff | Splinter Review |
The implementation of AboutToCheckerboard doesn't really make sense to me, and needs to be fixed.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8418082 -
Flags: review?(botond)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8418083 -
Flags: review?(chrislord.net)
Assignee | ||
Comment 3•11 years ago
|
||
green try |
Comment 4•11 years ago
|
||
Comment on attachment 8418082 [details] [diff] [review]
Part 1 - refactor some code
Review of attachment 8418082 [details] [diff] [review]:
-----------------------------------------------------------------
It might be worth introducing min() and max() overloads for BaseSize.
Attachment #8418082 -
Flags: review?(botond) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8418083 [details] [diff] [review]
Part 2 - Fix AboutToCheckerboard
Review of attachment 8418083 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with the comment addressed. In Java, do we have a threshold? This actually is an 'IsCheckerboarding' check rather than an 'AboutToCheckerboard' check. This issue shouldn't hold up getting this fix landed though.
::: gfx/layers/client/TiledContentClient.cpp
@@ +241,5 @@
> bool
> SharedFrameMetricsHelper::AboutToCheckerboard(const FrameMetrics& aContentMetrics,
> const FrameMetrics& aCompositorMetrics)
> {
> + CSSRect painted = aContentMetrics.mCriticalDisplayPort + aContentMetrics.GetScrollOffset();
This should check if mCriticalDisplayPort is empty and use mDisplayPort in that case.
Attachment #8418083 -
Flags: review?(chrislord.net) → review+
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Chris Lord [:cwiiis] from comment #5)
> Comment on attachment 8418083 [details] [diff] [review]
> Part 2 - Fix AboutToCheckerboard
>
> Review of attachment 8418083 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r+ with the comment addressed. In Java, do we have a threshold? This
> actually is an 'IsCheckerboarding' check rather than an
> 'AboutToCheckerboard' check. This issue shouldn't hold up getting this fix
> landed though.
You're right that in Java we have a threshold, there's the "danger zone" prefs and such that control the threshold. We can add that stuff here too if it's needed but as you said that can be deferred to a later bug.
> > + CSSRect painted = aContentMetrics.mCriticalDisplayPort + aContentMetrics.GetScrollOffset();
>
> This should check if mCriticalDisplayPort is empty and use mDisplayPort in
> that case.
Good point, fixed locally.
Assignee | ||
Comment 7•11 years ago
|
||
landing |
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/912b0ad78a62
https://hg.mozilla.org/mozilla-central/rev/9e5a13343d60
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•