Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index 7792b8b4058b4af831a3918b53a9fddff5d6748d..5bc5ab7afc64580ce8066456601fdb867a3eaced 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -552,6 +552,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// Don't check whether we expected a resize ack during layout tests. |
static void DisableResizeAckCheckForTesting(); |
+ typedef base::Callback<void(const unsigned char*, size_t)> |
+ WindowSnapshotCallback; |
+ void RequestWindowSnapshot(const WindowSnapshotCallback&); |
+ |
void WindowSnapshotAsyncCallback( |
pfeldman
2014/03/07 12:21:22
TODO(kaznacheev): retire.
Vladislav Kaznacheev
2014/03/11 13:08:56
Done.
|
int routing_id, |
int snapshot_id, |
@@ -763,8 +767,20 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// which may get in recursive loops). |
void DelayedAutoResized(); |
+ // TODO(kaznacheev): Remove this method when GpuBenchmarking V8 extension is |
+ // retired. |
+ void WindowSnapshotReachedScreenUnsafe(int snapshot_id); |
+ |
void WindowSnapshotReachedScreen(int snapshot_id); |
+ void OnSnapshotDataReceived(int snapshot_id, |
+ const unsigned char* png, |
+ size_t size); |
+ |
+ void OnSnapshotDataReceivedAsync( |
+ int snapshot_id, |
+ scoped_refptr<base::RefCountedBytes> png_data); |
+ |
// Send a message to the renderer process to change the accessibility mode. |
void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
@@ -942,6 +958,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
int64 last_input_number_; |
+ int next_window_snapshot_id_; |
+ typedef std::map<int, WindowSnapshotCallback> PendingSnapshotMap; |
+ PendingSnapshotMap pending_window_snapshots_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
}; |