Closed
Bug 1122094
Opened 10 years ago
Closed 10 years ago
Remove APZCTreeManager::GetAllowedTouchBehavior
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
Once bug 1101628 is done we should not need the APZCTreeManager::GetAllowedTouchBehavior function any more. Even now it's mostly just a dummy since we had a different idea of how the code would be architected when that function was added. With the new architecture as described in https://github.com/mozilla/gecko-dev/blob/master/gfx/doc/AsyncPanZoom.md#technical-details it is not needed.
Assignee | ||
Updated•10 years ago
|
Mentor: bugmail.mozilla
Whiteboard: [gfx-noted]
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 1•10 years ago
|
||
wrong-try-push |
Attachment #8572865 -
Flags: review?(botond)
Assignee | ||
Comment 2•10 years ago
|
||
... and by that I mean https://treeherder.mozilla.org/#/jobs?repo=try&revision=afe86e170d54
Comment 3•10 years ago
|
||
Comment on attachment 8572865 [details] [diff] [review]
Patch
Review of attachment 8572865 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/windows/winrt/MetroInput.cpp
@@ +516,4 @@
> for (uint32_t i = 0; i < aOutBehaviors.Length(); i++) {
> + // performing hit testing fallback: asking content to perform hit testing itself
> + // (in spite that this operation has high latency).
> + aOutBehaviors.AppendElement(mWidget->ContentGetAllowedTouchBehavior(aTransformedEvent->touches[i]->mRefPoint));
We're looping through aOutBehaviors, and for each one appending a new element to it?
Should we be looping through the touches instead?
Assignee | ||
Comment 4•10 years ago
|
||
Eek, good catch! :) There was also a build error in TestAsyncPanZoomController that I missed, will update the patch in a sec.
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8572865 -
Attachment is obsolete: true
Attachment #8572865 -
Flags: review?(botond)
Attachment #8572869 -
Flags: review?(botond)
Comment 6•10 years ago
|
||
Comment on attachment 8572869 [details] [diff] [review]
Patch
Review of attachment 8572869 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/tests/gtest/TestAsyncPanZoomController.cpp
@@ +132,5 @@
> };
>
> class TestAsyncPanZoomController : public AsyncPanZoomController {
> public:
> + typedef uint32_t TouchBehaviorFlags;
I'd rather have this typedef in an APZ header file than have different files (here, InputQueue and TestAsyncPanZoomController) define it independently.
Attachment #8572869 -
Flags: review?(botond) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Updated as per review comment. Try push for build is clean: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b725c665bfab
Attachment #8572869 -
Attachment is obsolete: true
Attachment #8573170 -
Flags: review+
Assignee | ||
Comment 8•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•