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 aa8951841c76f18066844a2f62b2f74654f75829..4990e096ba480c8942fdca8b749d8f580d6213d4 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -177,6 +177,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
virtual void GetSnapshotFromRenderer( |
const gfx::Rect& src_subrect, |
const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
+ virtual void GetSnapshotFromBrowser( |
+ const base::Callback< |
+ void(const unsigned char*,size_t)> callback) OVERRIDE; |
const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
@@ -549,6 +552,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// Don't check whether we expected a resize ack during layout tests. |
static void DisableResizeAckCheckForTesting(); |
+ // TODO(kaznacheev): Remove this method when GpuBenchmarking V8 extension is |
+ // retired. |
void WindowSnapshotAsyncCallback( |
int routing_id, |
int snapshot_id, |
@@ -760,8 +765,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); |
@@ -939,6 +956,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
int64 last_input_number_; |
+ int next_browser_snapshot_id_; |
+ typedef std::map<int, |
+ base::Callback<void(const unsigned char*, size_t)>> PendingSnapshotMap; |
+ PendingSnapshotMap pending_browser_snapshots_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
}; |