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

Unified Diff: content/public/browser/render_widget_host.h

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge CopyFromCompoitingSurface into CopyFromBackingStore Created 8 years, 9 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 | « content/port/browser/render_widget_host_view_port.h ('k') | ui/gfx/surface/accelerated_surface_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index e95d325a32f4932a980beae025695f038d9a5098..b9f52040cf0ab824cb4f07f5c2dce1fe10061395 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -177,8 +177,14 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Sender {
virtual void Blur() = 0;
// Copies the contents of the backing store into the given (uninitialized)
- // PlatformCanvas. Returns true on success, false otherwise.
- virtual bool CopyFromBackingStore(skia::PlatformCanvas* output) = 0;
+ // PlatformCanvas. Returns true on success, false otherwise. When accelerated
+ // compositing is active, the contents is copied from the compositing surface.
+ // If non empty |dest_size| is given, the content is shrinked so that it fits
+ // in |dest_size|. If |dest_size| is larger than the contens size, the
+ // content is not resized. If |dest_size| is empty, the original size of the
+ // contents is copied.
+ virtual bool CopyFromBackingStore(const gfx::Size& dest_size,
jam 2012/03/14 17:56:42 you're not setting this anywhere now, so why are y
mazda 2012/03/14 18:19:05 I'll set it soon in ThumbnailGenerator::GetBitmapF
+ skia::PlatformCanvas* output) = 0;
#if defined(TOOLKIT_GTK)
// Paint the backing store into the target's |dest_rect|.
« no previous file with comments | « content/port/browser/render_widget_host_view_port.h ('k') | ui/gfx/surface/accelerated_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698