From 0a119c96c644fce867059839ab24fb7cc38e4047 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Wed, 23 Feb 2011 17:50:56 +0000 Subject: Dramatically simplify view painting by getting rid of RootView's redundant knowledge of invalid rects.The OS is capable of doing this for us (see: InvalidateRect, etc.), so we should just defer to it.I was also able to remove all of the custom logic in WindowWin::OnNCPaint and replace it with a simple SetMsgHandled check.http://crbug.com/72040TEST=none Review URL: http://codereview.chromium.org/6469096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75758 0039d316-1c4b-4281-b951-d872f2087c98 --- views/animation/bounds_animator.cc | 2 +- views/animation/bounds_animator_unittest.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'views/animation') diff --git a/views/animation/bounds_animator.cc b/views/animation/bounds_animator.cc index 20a6616..09d880e 100644 --- a/views/animation/bounds_animator.cc +++ b/views/animation/bounds_animator.cc @@ -236,7 +236,7 @@ void BoundsAnimator::AnimationContainerProgressed( // Adjust for rtl. repaint_bounds_.set_x(parent_->GetMirroredXWithWidthInView( repaint_bounds_.x(), repaint_bounds_.width())); - parent_->SchedulePaintInRect(repaint_bounds_, false); + parent_->SchedulePaintInRect(repaint_bounds_); repaint_bounds_.SetRect(0, 0, 0, 0); } diff --git a/views/animation/bounds_animator_unittest.cc b/views/animation/bounds_animator_unittest.cc index 7dc0f37..a899f8e 100644 --- a/views/animation/bounds_animator_unittest.cc +++ b/views/animation/bounds_animator_unittest.cc @@ -75,7 +75,7 @@ bool OwnedDelegate::canceled_ = false; class TestView : public views::View { public: TestView() {} - virtual void SchedulePaintInRect(const gfx::Rect& r, bool urgent) { + virtual void SchedulePaintInRect(const gfx::Rect& r) { if (dirty_rect_.IsEmpty()) dirty_rect_ = r; else -- cgit v1.1