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

Side by Side Diff: content/common/browser_plugin/browser_plugin_messages.h

Issue 19331002: Associate an id with the output surface to handle lost contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, tests Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // to specify the location in the command stream when the compositor 202 // to specify the location in the command stream when the compositor
203 // is no longer using it. 203 // is no longer using it.
204 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK, 204 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK,
205 int /* instance_id */, 205 int /* instance_id */,
206 int /* route_id */, 206 int /* route_id */,
207 int /* gpu_host_id */, 207 int /* gpu_host_id */,
208 std::string /* mailbox_name */, 208 std::string /* mailbox_name */,
209 uint32 /* sync_point */) 209 uint32 /* sync_point */)
210 210
211 // Acknowledge that we presented an ubercomp frame. 211 // Acknowledge that we presented an ubercomp frame.
212 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_CompositorFrameACK, 212 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_CompositorFrameACK,
213 int /* instance_id */, 213 int /* instance_id */,
214 int /* route_id */, 214 int /* route_id */,
215 uint32 /* output_surface_id */,
215 int /* renderer_host_id */, 216 int /* renderer_host_id */,
216 cc::CompositorFrameAck /* ack */) 217 cc::CompositorFrameAck /* ack */)
217 218
218 // When a BrowserPlugin has been removed from the embedder's DOM, it informs 219 // When a BrowserPlugin has been removed from the embedder's DOM, it informs
219 // the browser process to cleanup the guest. 220 // the browser process to cleanup the guest.
220 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, 221 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
221 int /* instance_id */) 222 int /* instance_id */)
222 223
223 // Tells the guest it has been shown or hidden. 224 // Tells the guest it has been shown or hidden.
224 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, 225 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 std::string /* name */) 360 std::string /* name */)
360 361
361 // Guest renders into an FBO with textures provided by the embedder. 362 // Guest renders into an FBO with textures provided by the embedder.
362 // When HW accelerated buffers are swapped in the guest, the message 363 // When HW accelerated buffers are swapped in the guest, the message
363 // is forwarded to the embedder to notify it of a new texture 364 // is forwarded to the embedder to notify it of a new texture
364 // available for compositing. 365 // available for compositing.
365 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_BuffersSwapped, 366 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_BuffersSwapped,
366 int /* instance_id */, 367 int /* instance_id */,
367 BrowserPluginMsg_BuffersSwapped_Params) 368 BrowserPluginMsg_BuffersSwapped_Params)
368 369
369 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CompositorFrameSwapped, 370 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_CompositorFrameSwapped,
370 int /* instance_id */, 371 int /* instance_id */,
371 cc::CompositorFrame /* frame */, 372 cc::CompositorFrame /* frame */,
372 int /* route_id */, 373 int /* route_id */,
374 uint32 /* output_surface_id */,
373 int /* renderer_host_id */) 375 int /* renderer_host_id */)
374 376
375 // When the guest requests permission, the browser process forwards this 377 // When the guest requests permission, the browser process forwards this
376 // request to the embeddder through this message. 378 // request to the embeddder through this message.
377 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, 379 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission,
378 int /* instance_id */, 380 int /* instance_id */,
379 BrowserPluginPermissionType /* permission_type */, 381 BrowserPluginPermissionType /* permission_type */,
380 int /* request_id */, 382 int /* request_id */,
381 base::DictionaryValue /* request_info */) 383 base::DictionaryValue /* request_info */)
382 384
383 // Forwards a PointerLock Unlock request to the BrowserPlugin. 385 // Forwards a PointerLock Unlock request to the BrowserPlugin.
384 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) 386 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_UnlockMouse, int /* instance_id */)
385 387
OLDNEW
« no previous file with comments | « content/browser/web_contents/render_view_host_manager_unittest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698