From fb3b1097c848f564a2f79cc0fef526f74ae85297 Mon Sep 17 00:00:00 2001 From: "cpu@chromium.org" Date: Fri, 4 Sep 2009 21:06:41 +0000 Subject: Remove non-full paints from uninitialized backing store When we create a new backing store, by definition, we don't have the previous bits, so it does not make sense to draw a small dransport dib over what ammounts to black pixels. BUG=13762 TEST=see bug Review URL: http://codereview.chromium.org/193017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25512 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/renderer_host/render_widget_host.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'chrome/browser/renderer_host/render_widget_host.cc') diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc index e14b846..e28b006 100644 --- a/chrome/browser/renderer_host/render_widget_host.cc +++ b/chrome/browser/renderer_host/render_widget_host.cc @@ -844,12 +844,10 @@ void RenderWidgetHost::PaintBackingStoreRect(TransportDIB* bitmap, } bool needs_full_paint = false; - BackingStore* backing_store = - BackingStoreManager::PrepareBackingStore(this, view_size, - process_->process().handle(), - bitmap, bitmap_rect, - &needs_full_paint); - DCHECK(backing_store != NULL); + BackingStoreManager::PrepareBackingStore(this, view_size, + process_->process().handle(), + bitmap, bitmap_rect, + &needs_full_paint); if (needs_full_paint) { repaint_start_time_ = TimeTicks::Now(); repaint_ack_pending_ = true; -- cgit v1.1