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

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 10352016: Consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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/tab_contents/thumbnail_generator.cc
diff --git a/chrome/browser/tab_contents/thumbnail_generator.cc b/chrome/browser/tab_contents/thumbnail_generator.cc
index 55aabae490c6f52d1d8f10349d24b94f744d7612..c8678d11e90273128ce4494e7ef476af29abcae0 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.cc
+++ b/chrome/browser/tab_contents/thumbnail_generator.cc
@@ -491,7 +491,7 @@ void ThumbnailGenerator::AsyncUpdateThumbnail(
skia::PlatformCanvas* temp_canvas = new skia::PlatformCanvas;
web_contents_weak_factory_.reset(
new base::WeakPtrFactory<WebContents>(web_contents));
- render_widget_host->AsyncCopyFromBackingStore(
+ render_widget_host->CopyFromBackingStore(
gfx::Rect(), copy_size, temp_canvas,
base::Bind(&ThumbnailGenerator::AsyncUpdateThumbnailFinish,
weak_factory_.GetWeakPtr(),
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698