Closed
Bug 1064840
Opened 10 years ago
Closed 10 years ago
Don't show apz-failure visual indicator if there is a content layer with that APZ
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox33 | --- | unaffected |
firefox34 | --- | fixed |
firefox35 | --- | fixed |
b2g-v2.0 | --- | unaffected |
b2g-v2.1 | --- | fixed |
b2g-v2.2 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file, 1 obsolete file)
7.26 KB,
patch
|
botond
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
From bug 1063158 comment 13:
> In bug 1053992 I think we should just suppress the visual marker if there
> are layers with content and FrameMetrics with the same ID as the
> FrameMetrics of the scrollinfo layer.
This bug is to implement this.
Assignee | ||
Updated•10 years ago
|
status-b2g-v2.0:
--- → unaffected
status-b2g-v2.1:
--- → affected
status-b2g-v2.2:
--- → affected
status-firefox33:
--- → unaffected
status-firefox34:
--- → affected
status-firefox35:
--- → affected
Comment 1•10 years ago
|
||
[Blocking Requested - why for this release]:
Since Bug 1063158 is marked as wontfix, and this bug is created to suppress the visual indicator warning, it is required to verify Bug 1026271
blocking-b2g: --- → 2.1?
Assignee | ||
Comment 2•10 years ago
|
||
Verified that this works by flipping the layout.async-containerless-scroll.enabled pref to false and testing on the case in bug 1011639.
Attachment #8486455 -
Flags: review?(botond)
Comment 3•10 years ago
|
||
Comment on attachment 8486455 [details] [diff] [review]
Patch
Review of attachment 8486455 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/AsyncCompositionManager.cpp
@@ +575,5 @@
> &overscrollTransform);
>
> + Matrix4x4 asyncTransform = Matrix4x4(asyncTransformWithoutOverscroll) * overscrollTransform;
> + if (!aLayer->IsScrollInfoLayer() || asyncTransform.IsIdentity()) {
> + controller->MarkAsyncTransformAppliedToContent();
I'm not sure how I feel about an "async transform applied to content" flag whose interpretation seems to be "at least one layer associated with the APZ is a non-scrollinfo layer OR the transform is the identity transform".
I think it would make more sense to have this flag only mean the first thing ("at least one layer associated with the APZ is a non-scrollinfo layer") (and perhaps alter the name accordingly), and check the second condition separately.
::: gfx/layers/composite/ContainerLayerComposite.cpp
@@ +434,5 @@
> // on it down to the bottom using GetFirstChild and not worry about walking onto another
> // underlying layer.
> for (LayerMetricsWrapper i(aContainer); i; i = i.GetFirstChild()) {
> if (AsyncPanZoomController* apzc = i.GetApzc()) {
> + if (!apzc->GetAsyncTransformAppliedToContent()) {
That is, here we would check !apzc->GetAsyncTransformAppliedToContent() && !Matrix4x4(apzc->GetCurrentTransform()).IsIdentity().
Assignee | ||
Comment 4•10 years ago
|
||
Good call! Updated
Attachment #8486455 -
Attachment is obsolete: true
Attachment #8486455 -
Flags: review?(botond)
Attachment #8486501 -
Flags: review?(botond)
Comment 5•10 years ago
|
||
Comment on attachment 8486501 [details] [diff] [review]
Patch v2
Review of attachment 8486501 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/AsyncCompositionManager.cpp
@@ +573,5 @@
> controller->SampleContentTransformForFrame(&asyncTransformWithoutOverscroll,
> scrollOffset,
> &overscrollTransform);
>
> + Matrix4x4 asyncTransform = Matrix4x4(asyncTransformWithoutOverscroll) * overscrollTransform;
You no longer need this declared up here.
Attachment #8486501 -
Flags: review?(botond) → review+
Assignee | ||
Comment 6•10 years ago
|
||
Good catch. Removed that bit and landed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/825737c8c1d1
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8486501 [details] [diff] [review]
Patch v2
Approval Request Comment
[Feature/regressing bug #]: bug 1053992
[User impact if declined]: the visual indicator added in bug 1053992 is not particularly useful without this change, as it provides incorrect indications.
[Describe test coverage new/current, TBPL]: manual testing
[Risks and why]: low risk, code is pretty well understood. should only affect non-default configurations (i.e. when the FPS counter is enabled from the developer HUD or via prefs)
[String/UUID change made/needed]: none
Attachment #8486501 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
blocking-b2g: 2.1? → 2.1+
Updated•10 years ago
|
Attachment #8486501 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 9•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•