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

Issue 403005: Refactors RenderWidget to extract a PaintAggregator class.... (Closed)

Created:
11 years, 1 month ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), jam
Visibility:
Public.

Description

Refactors RenderWidget to extract a PaintAggregator class. After this change, I plan on changing the PaintAggregator algorithm. Some things to note: 1- Previously, it was possible to send overlapping ViewHostMsg_PaintRect and ViewHostMsg_ScrollRect messages. This happened when scrolling a page since the scrollbar would need to be repainted while the contents of the page are being scrolled. With this CL, this overlapping behavior is a bit more explicit. 2- There was a TODO about view_size clipping that I've eliminated. I was able to eliminate it because I realized that it is correct to clip the rects passed by didInvalidateRect and didScrollRect to the size of the RenderWidget. Apparently WebKit can sometimes invalidate regions outside the view. R=brettw BUG=25905 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32496

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -191 lines) Patch
M base/gfx/rect.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/paint_aggregator.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/renderer/paint_aggregator.cc View 1 2 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/renderer/paint_aggregator_unittest.cc View 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/renderer/render_widget.h View 1 2 3 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 3 7 chunks +106 lines, -177 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
darin (slow to review)
11 years, 1 month ago (2009-11-17 18:28:50 UTC) #1
brettw
http://codereview.chromium.org/403005/diff/3001/3007 File chrome/renderer/paint_aggregator.cc (right): http://codereview.chromium.org/403005/diff/3001/3007#newcode30 Line 30: void PaintAggregator::ScrollRect(int dx, int dy, const gfx::Rect& clip_rect) ...
11 years, 1 month ago (2009-11-18 17:22:54 UTC) #2
brettw
> http://codereview.chromium.org/403005/diff/3001/3004#newcode415 > Line 415: if (update.scroll_delta.x()) { > It seems like this complicated computation ...
11 years, 1 month ago (2009-11-18 17:33:07 UTC) #3
darin (slow to review)
On Wed, Nov 18, 2009 at 9:22 AM, <brettw@chromium.org> wrote: > > http://codereview.chromium.org/403005/diff/3001/3007 > File ...
11 years, 1 month ago (2009-11-18 17:45:27 UTC) #4
darin (slow to review)
On Wed, Nov 18, 2009 at 9:45 AM, Darin Fisher <darin@chromium.org> wrote: > On Wed, ...
11 years, 1 month ago (2009-11-18 17:50:55 UTC) #5
darin (slow to review)
OK, please take another look. All suggestions incorporated.
11 years, 1 month ago (2009-11-18 21:52:04 UTC) #6
brettw
11 years, 1 month ago (2009-11-18 23:58:37 UTC) #7
sweet, LGTM

Powered by Google App Engine
This is Rietveld 408576698