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

Issue 5613002: Allow painting multiple paint rects.... (Closed)

Created:
10 years ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Allow painting multiple paint rects. Previously, if there was no scrolling, then we would always paint the union of any invalidations. With this change, if the area of the invalidation rects is sufficiently less than the area of the union, then we will just paint the individual invalidation rects. This may regress page cycler performance (see http://crbug.com/29589). R=brettw BUG=50303 TEST=updated unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68403

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -82 lines) Patch
M chrome/renderer/paint_aggregator.h View 1 1 chunk +2 lines, -1 line 1 comment Download
M chrome/renderer/paint_aggregator.cc View 1 2 3 chunks +24 lines, -1 line 0 comments Download
M chrome/renderer/paint_aggregator_unittest.cc View 1 18 chunks +133 lines, -71 lines 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
darin (slow to review)
10 years ago (2010-12-06 18:46:45 UTC) #1
brettw
http://codereview.chromium.org/5613002/diff/1/chrome/renderer/paint_aggregator.h File chrome/renderer/paint_aggregator.h (right): http://codereview.chromium.org/5613002/diff/1/chrome/renderer/paint_aggregator.h#newcode46 chrome/renderer/paint_aggregator.h:46: const PendingUpdate& GetPendingUpdate(); It kind of sucks that this ...
10 years ago (2010-12-06 19:09:29 UTC) #2
darin (slow to review)
On Mon, Dec 6, 2010 at 11:09 AM, <brettw@chromium.org> wrote: > > > http://codereview.chromium.org/5613002/diff/1/chrome/renderer/paint_aggregator.h > ...
10 years ago (2010-12-06 19:11:31 UTC) #3
brettw
On Mon, Dec 6, 2010 at 11:11 AM, Darin Fisher <darin@chromium.org> wrote: > On Mon, ...
10 years ago (2010-12-06 19:27:01 UTC) #4
darin (slow to review)
On Mon, Dec 6, 2010 at 11:19 AM, Brett Wilson <brettw@chromium.org> wrote: > On Mon, ...
10 years ago (2010-12-06 19:50:05 UTC) #5
brettw
On Mon, Dec 6, 2010 at 11:49 AM, Darin Fisher <darin@chromium.org> wrote: > On Mon, ...
10 years ago (2010-12-06 19:55:42 UTC) #6
darin (slow to review)
OK, please take another look. I went with PopPendingUpdate.
10 years ago (2010-12-06 22:41:46 UTC) #7
brettw
10 years ago (2010-12-06 23:16:18 UTC) #8
LGTM

http://codereview.chromium.org/5613002/diff/16001/chrome/renderer/paint_aggre...
File chrome/renderer/paint_aggregator.h (right):

http://codereview.chromium.org/5613002/diff/16001/chrome/renderer/paint_aggre...
chrome/renderer/paint_aggregator.h:46: // Returns and clears the pending update.
Returns -> Fills |update|

Powered by Google App Engine
This is Rietveld 408576698