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

Unified Diff: content/browser/renderer_host/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: '' Created 8 years, 10 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: content/browser/renderer_host/render_widget_host.h
diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h
index 7abb5479f4bfd8705a0108cd62e06bc4a1242dff..da4f2dd3e088567bbceac920879aeedd55a1143b 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -112,6 +112,11 @@ class CONTENT_EXPORT RenderWidgetHost {
// PlatformCanvas. Returns true on success, false otherwise.
virtual bool CopyFromBackingStore(skia::PlatformCanvas* output) = 0;
+ // Copies the contents of the compositing surface into the given
+ // (uninitialized) PlatformCanvas if any. Returns true on success, false
+ // otherwise.
+ virtual bool CopyFromCompositingSurface(skia::PlatformCanvas* output) = 0;
+
#if defined(TOOLKIT_GTK)
// Paint the backing store into the target's |dest_rect|.
virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
@@ -324,6 +329,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
void SetIsLoading(bool is_loading);
virtual bool CopyFromBackingStore(skia::PlatformCanvas* output) OVERRIDE;
+ virtual bool CopyFromCompositingSurface(
+ skia::PlatformCanvas* output) OVERRIDE;
#if defined(TOOLKIT_GTK)
virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
GdkWindow* target) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698