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

Issue 7068029: Fix residue left over from find bar when using accelerated compositing (Closed)

Created:
9 years, 7 months ago by jbates
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, Vangelis Kokkevis
Visibility:
Public.

Description

This bug fixes a couple issues when accelerated compositing is enabled: - residue left over from find bar. - no redraw when another window is dragged over chrome tab. BUG=83091 TEST=see bug for manual test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87084

Patch Set 1 #

Total comments: 13

Patch Set 2 : comments #

Total comments: 4

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : simplified #

Patch Set 5 : cleanup #

Total comments: 9

Patch Set 6 : . #

Total comments: 1

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -13 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 5 chunks +27 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jbates
9 years, 7 months ago (2011-05-25 23:30:25 UTC) #1
jbates
(added Al as a reviewer)
9 years, 7 months ago (2011-05-25 23:37:41 UTC) #2
nduca
LGTM less me bikeshedding. http://codereview.chromium.org/7068029/diff/1/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/1/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode73 chrome/browser/renderer_host/render_widget_host_view_win.cc:73: const char* kRenderWidgetHVWPropStr = "RWHVW_P"; ...
9 years, 7 months ago (2011-05-25 23:42:29 UTC) #3
vangelis
http://codereview.chromium.org/7068029/diff/1/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/1/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1510 chrome/browser/renderer_host/render_widget_host_view_win.cc:1510: void RenderWidgetHostViewWin::ScheduleComposite() { On 2011/05/25 23:42:29, nduca wrote: > ...
9 years, 7 months ago (2011-05-26 05:57:07 UTC) #4
jbates
These redraw bugs are from a regression introduced on April 27. Probably related to http://codereview.chromium.org/6880218/, ...
9 years, 7 months ago (2011-05-26 18:21:16 UTC) #5
vangelis
http://codereview.chromium.org/7068029/diff/5001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/5001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode73 chrome/browser/renderer_host/render_widget_host_view_win.cc:73: const char* kRenderWidgetHVWPropStr = "RWHVW_P"; A quick look through ...
9 years, 7 months ago (2011-05-26 19:21:52 UTC) #6
jbates
http://codereview.chromium.org/7068029/diff/5001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/5001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode73 chrome/browser/renderer_host/render_widget_host_view_win.cc:73: const char* kRenderWidgetHVWPropStr = "RWHVW_P"; On 2011/05/26 19:21:53, vangelis ...
9 years, 7 months ago (2011-05-26 20:14:47 UTC) #7
darin (slow to review)
http://codereview.chromium.org/7068029/diff/10001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/10001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1516 chrome/browser/renderer_host/render_widget_host_view_win.cc:1516: MessageLoop::current()->PostTask(FROM_HERE, Maybe I don't understand what you are trying ...
9 years, 7 months ago (2011-05-26 23:03:06 UTC) #8
jbates
After talking with Vangelis, we realized that this code could be much simpler. The latest ...
9 years, 7 months ago (2011-05-27 17:11:41 UTC) #9
nduca
Looks gooder to me... LGTM.
9 years, 7 months ago (2011-05-27 17:23:22 UTC) #10
vangelis
Looks good to me too. Thanks!
9 years, 7 months ago (2011-05-27 17:38:12 UTC) #11
darin (slow to review)
OK, LGTM http://codereview.chromium.org/7068029/diff/13001/content/browser/renderer_host/render_widget_host.cc File content/browser/renderer_host/render_widget_host.cc (left): http://codereview.chromium.org/7068029/diff/13001/content/browser/renderer_host/render_widget_host.cc#oldcode454 content/browser/renderer_host/render_widget_host.cc:454: OnMessageReceived(msg); won't this exacerbate the issue where ...
9 years, 7 months ago (2011-05-27 17:53:08 UTC) #12
Ben Goodger (Google)
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); SetProp() can be problematic, and can ...
9 years, 7 months ago (2011-05-27 17:56:17 UTC) #13
jbates
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); On 2011/05/27 17:56:18, Ben Goodger wrote: ...
9 years, 7 months ago (2011-05-27 18:18:55 UTC) #14
Ben Goodger (Google)
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); Yes. There should be a win_util ...
9 years, 7 months ago (2011-05-27 18:20:15 UTC) #15
jbates
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); On 2011/05/27 18:20:15, Ben Goodger wrote: ...
9 years, 7 months ago (2011-05-27 18:27:33 UTC) #16
darin (slow to review)
On Fri, May 27, 2011 at 11:18 AM, <jbates@chromium.org> wrote: > > > http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc > ...
9 years, 7 months ago (2011-05-27 18:27:35 UTC) #17
Ben Goodger (Google)
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); Ah it got migrated to src/ui. ...
9 years, 7 months ago (2011-05-27 18:44:17 UTC) #18
jbates
http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/13001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1563 chrome/browser/renderer_host/render_widget_host_view_win.cc:1563: SetProp(compositor_host_window_, kRenderWidgetHVWPropStr, this); On 2011/05/27 18:44:17, Ben Goodger wrote: ...
9 years, 7 months ago (2011-05-27 19:10:37 UTC) #19
darin (slow to review)
I don't see where the user data is cleared. Do we know that the pointer ...
9 years, 7 months ago (2011-05-27 19:21:47 UTC) #20
Ben Goodger (Google)
LGTM for SetWindowUserData usage. http://codereview.chromium.org/7068029/diff/20001/chrome/browser/renderer_host/render_widget_host_view_win.cc File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/7068029/diff/20001/chrome/browser/renderer_host/render_widget_host_view_win.cc#newcode1491 chrome/browser/renderer_host/render_widget_host_view_win.cc:1491: ui::GetWindowUserData(hWnd)); quick nit: hwnd instead ...
9 years, 7 months ago (2011-05-27 19:22:27 UTC) #21
Ben Goodger (Google)
9 years, 7 months ago (2011-05-27 19:26:28 UTC) #22
Btw you can just set to NULL if you want to remove it in addressing Darin's
comment. (There is no method to remove user data).

-Ben

On Fri, May 27, 2011 at 12:22 PM, <ben@chromium.org> wrote:

> LGTM for SetWindowUserData usage.
>
>
>
>
http://codereview.chromium.org/7068029/diff/20001/chrome/browser/renderer_hos...
>
> File chrome/browser/renderer_host/render_widget_host_view_win.cc
> (right):
>
>
>
http://codereview.chromium.org/7068029/diff/20001/chrome/browser/renderer_hos...
> chrome/browser/renderer_host/render_widget_host_view_win.cc:1491:
> ui::GetWindowUserData(hWnd));
> quick nit: hwnd instead of hWnd.
>
>
> http://codereview.chromium.org/7068029/
>

Powered by Google App Engine
This is Rietveld 408576698