Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 6588075: Remove fake mouse move hack. (Closed)

Created:
9 years, 9 months ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Remove fake mouse move hack. Removing the hack because the original problem has already been fixed. This takes 10+ms on cr48 and is one of causes of UI jank-ness on chromeos. BUG=13389, chromium-os:8632 TEST=tested repo step in crbug.com/12879 and confirmed that the original problem has fixed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76428

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -21 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
oshima
9 years, 9 months ago (2011-03-01 03:31:31 UTC) #1
Evan Stade
LGTM so is the 10ms coming from gtk_widget_get_pointer? Are you looking at removing other uses ...
9 years, 9 months ago (2011-03-01 21:06:10 UTC) #2
oshima
On Tue, Mar 1, 2011 at 1:06 PM, <estade@chromium.org> wrote: > LGTM > > so ...
9 years, 9 months ago (2011-03-01 21:36:28 UTC) #3
Evan Stade
let's see... the one in ButtonPressReleaseEvent seems to be for popup render views (i.e. select ...
9 years, 9 months ago (2011-03-01 22:32:02 UTC) #4
oshima
9 years, 9 months ago (2011-03-02 23:21:56 UTC) #5
On Tue, Mar 1, 2011 at 2:32 PM, <estade@chromium.org> wrote:

> let's see...
>
> the one in ButtonPressReleaseEvent seems to be for popup render views (i.e.
> select dropdowns and autocomplete dropdowns). I think the select dropdowns
> grab
> the mouse pointer, so they can get mouse down events that originated in a
> different widget, such as the web page render view, which has a different
> top
> level window (the main chrome window), so we have to do a round trip to X
> to get
> the coordinates relative to the popup window. If they shared a toplevel
> window,
> we could use gtk_widget_translate_coordinates instead, but they don't.
> Instead
> of gtk_widget_get_pointer, we could use gtk_window_get_position to
> translate the
> coordinates, however we'd have to do it twice. You could investigate if
> that is
> faster.
>
> Same thing applies to MouseMoveEvent.


> These uses do suck, but the mitigating factor is that the code path is not
> frequently hit (probably only when you have a select dropdown open).
>
>
I see. Thank you for explanation.


>
> http://codereview.chromium.org/6588075/
>

Powered by Google App Engine
This is Rietveld 408576698