| 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);
|
|
|