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

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

Issue 118420: Adds kind-of-live thumbnail generation for a potential tab switcher. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 17971)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -650,7 +650,7 @@
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 @@
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