diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 01:18:52 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 01:18:52 +0000 |
commit | 261f0df0d800691923d94d4a67f239889e56c336 (patch) | |
tree | dd9de19c01243292d308084e645f1d03a2103947 /chrome/renderer | |
parent | 0d37b1fe487884395bd34ef629977d450ba9fb53 (diff) | |
download | chromium_src-261f0df0d800691923d94d4a67f239889e56c336.zip chromium_src-261f0df0d800691923d94d4a67f239889e56c336.tar.gz chromium_src-261f0df0d800691923d94d4a67f239889e56c336.tar.bz2 |
Disable multiple paint rects due to page cycler regression on single-core-xp.
This is just a partial revert of r33949.
TBR=stuartmorgan
BUG=29589
TEST=none
Review URL: http://codereview.chromium.org/502042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_widget.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc index 14c7a7d..27955bb 100644 --- a/chrome/renderer/render_widget.cc +++ b/chrome/renderer/render_widget.cc @@ -500,6 +500,13 @@ void RenderWidget::DoDeferredUpdate() { HISTOGRAM_COUNTS_100("MPArch.RW_PaintRectCount", update.paint_rects.size()); + // TODO(darin): Re-enable painting multiple damage rects once the + // page-cycler regressions are resolved. See bug 29589. + if (update.scroll_rect.IsEmpty()) { + update.paint_rects.clear(); + update.paint_rects.push_back(bounds); + } + for (size_t i = 0; i < update.paint_rects.size(); ++i) PaintRect(update.paint_rects[i], bounds.origin(), canvas.get()); |