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

Unified Diff: content/common/view_messages.h

Issue 12881005: Allow CopyFromBackingStore to fallback to copying from the renderer side if the accelerated surface… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index c186f21647eee0f7de0e92473e89e313746427c5..a498b41bbf57573fabe3a017cc411533e7b67b8f 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1386,6 +1386,14 @@ IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
IPC_MESSAGE_ROUTED1(ViewMsg_SwapCompositorFrameAck,
cc::CompositorFrameAck /* ack */)
+// Sent from the browser to ask the renderer for a snapshot of the current view.
jamesr 2013/03/18 01:32:19 This IPC pair already exists: https://code.google
justinlin 2013/03/18 03:21:14 Right, but we would like to use it from content/,
+// The renderer replies with whether the snapshot succeeded and the SkBitmap.
+IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot,
+ gfx::Rect /* src_subrect */)
+IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot,
+ bool, /* success */
+ SkBitmap /* bitmap */)
+
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698