Closed Bug 576182 Opened 14 years ago Closed 14 years ago

Avoid doing manual hit testing when the mouse is not in a known non-client area. (performance regression)

Categories

(Core :: Widget: Win32, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jimm, Assigned: jimm)

References

Details

We get WM_NCHITTEST events for visible regions of the top level chrome window. There's no need to process or send hit testing events unless we know the mouse in in a possible drag area.
(In reply to comment #0) > We get WM_NCHITTEST events for visible regions of the top level chrome window. When? Only on mousedown? I don't think sending hit test events is expensive - it's the same workload as we're doing for every single mouse move event.
(In reply to comment #1) > (In reply to comment #0) > > We get WM_NCHITTEST events for visible regions of the top level chrome window. > > When? Only on mousedown? > > I don't think sending hit test events is expensive - it's the same workload as > we're doing for every single mouse move event. Any mouse event. Overhead for a hit test is added to existing mouse events for chrome currently. When 130078 lands this will expand to the entire window, including content. It should be easy to restrict this to the new client areas though so that in most areas we are "doing what we normally do".
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.