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

Unified Diff: chrome/views/hwnd_view.cc

Issue 12670: Fix black flash when doing fast animations - our fix was previously Vista-onl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/hwnd_view.cc
===================================================================
--- chrome/views/hwnd_view.cc (revision 6000)
+++ chrome/views/hwnd_view.cc (working copy)
@@ -174,15 +174,14 @@
}
void HWNDView::Paint(ChromeCanvas* canvas) {
- // On Vista, the area behind our window is black (due to the Aero Glass)
- // this means that during a fast resize (where our content doesn't draw
- // over the full size of our HWND, and the HWND background color
- // doesn't show up), we need to cover that blackness with something so
- // that fast resizes don't result in black flash.
+ // The area behind our window is black, so during a fast resize (where our
+ // content doesn't draw over the full size of our HWND, and the HWND
+ // background color doesn't show up), we need to cover that blackness with
+ // something so that fast resizes don't result in black flash.
//
// It would be nice if this used some approximation of the page's
// current background color.
- if (installed_clip_ && win_util::ShouldUseVistaFrame())
+ if (installed_clip_)
canvas->FillRectInt(SkColorSetRGB(255, 255, 255), 0, 0, width(), height());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698