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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 126101: Adds kind-of-live thumbnail generation for a potential tab switcher. (Closed)
Patch Set: For Checking hopefully Created 11 years, 6 months 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
Index: chrome/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc
index 9c33865ee2603ad6cc1080bbde4fad205cd3793a..15bee479c47928abd85d06e728ecacaf2f252de4 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_win.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc
@@ -650,7 +650,7 @@ void RenderWidgetHostViewWin::SetTooltipText(const std::wstring& tooltip_text) {
BackingStore* RenderWidgetHostViewWin::AllocBackingStore(
const gfx::Size& size) {
- return new BackingStore(size);
+ return new BackingStore(render_widget_host_, size);
}
void RenderWidgetHostViewWin::SetBackground(const SkBitmap& background) {
@@ -692,7 +692,7 @@ void RenderWidgetHostViewWin::OnPaint(HDC dc) {
DCHECK(render_widget_host_->process()->channel());
about_to_validate_and_paint_ = true;
- BackingStore* backing_store = render_widget_host_->GetBackingStore();
+ BackingStore* backing_store = render_widget_host_->GetBackingStore(true);
// We initialize |paint_dc| (and thus call BeginPaint()) after calling
// GetBackingStore(), so that if it updates the invalid rect we'll catch the
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | chrome/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698