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

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

Issue 10348007: Remove some dead code in ThumbnailGenerator. (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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/thumbnail_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/thumbnail_generator.h
diff --git a/chrome/browser/tab_contents/thumbnail_generator.h b/chrome/browser/tab_contents/thumbnail_generator.h
index 70d9e2f30d00712524c896de12661967f71e6757..cceb4837be9577222e39d5181676578bff5791fa 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.h
+++ b/chrome/browser/tab_contents/thumbnail_generator.h
@@ -79,40 +79,23 @@ class ThumbnailGenerator : public content::NotificationObserver,
void set_enabled(bool enabled) { enabled_ = enabled; }
// This registers a callback that can receive the resulting SkBitmap
- // from the renderer when it is done rendering it. This differs
- // from GetThumbnailForRenderer in that it may be asynchronous, and
- // because it will also fetch the bitmap even if the tab is hidden.
+ // from the renderer when it is done rendering it. This is asynchronous,
+ // and it will also fetch the bitmap even if the tab is hidden.
// In addition, if the renderer has to be invoked, the scaling of
// the thumbnail happens on the rendering thread.
//
// Takes ownership of the callback object.
//
- // If |prefer_backing_store| is set, then the function will try and
- // use the backing store for the page if it exists. |page_size| is
- // the size to render the page, and |desired_size| is the size to
- // scale the resulting rendered page to (which is done efficiently
- // if done in the rendering thread). If |prefer_backing_store| is
- // set, and the backing store is used, then the resulting image will
- // be less then twice the size of the |desired_size| in both
+ // |page_size| is the size to render the page, and |desired_size| is
+ // the size to scale the resulting rendered page to (which is done
+ // efficiently if done in the rendering thread). The resulting image
+ // will be less then twice the size of the |desired_size| in both
// dimensions, but might not be the exact size requested.
void AskForSnapshot(content::RenderWidgetHost* renderer,
- bool prefer_backing_store,
const ThumbnailReadyCallback& callback,
gfx::Size page_size,
gfx::Size desired_size);
- // This returns a thumbnail of a fixed, small size for the given
- // renderer.
- SkBitmap GetThumbnailForRenderer(content::RenderWidgetHost* renderer) const;
-
- // This returns a thumbnail of a fixed, small size for the given
- // renderer. |options| is a bitmask of ThumbnailOptions. If
- // |clip_result| is non-NULL, the result of clipping will be written.
- SkBitmap GetThumbnailForRendererWithOptions(
- content::RenderWidgetHost* renderer,
- int options,
- ClipResult* clip_result) const;
-
// Start or stop monitoring notifications for |renderer| based on the value
// of |monitor|.
void MonitorRenderer(content::RenderWidgetHost* renderer, bool monitor);
« no previous file with comments | « no previous file | chrome/browser/tab_contents/thumbnail_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698