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

Side by Side Diff: content/common/plugin_messages.h

Issue 8678037: Render Core Animation plugins through WebKit's compositor rather than (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 #include "content/public/common/webkit_param_traits.h" 10 #include "content/public/common/webkit_param_traits.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 std::string /* message */) 375 std::string /* message */)
376 376
377 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown) 377 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown)
378 378
379 #if defined(OS_MACOSX) 379 #if defined(OS_MACOSX)
380 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged, 380 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged,
381 bool /* focused */) 381 bool /* focused */)
382 382
383 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme) 383 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme)
384 384
385 //----------------------------------------------------------------------
386 // Legacy Core Animation plugin implementation rendering directly to screen.
387
385 // This message, used in Mac OS X 10.5 and earlier, is sent from the plug-in 388 // This message, used in Mac OS X 10.5 and earlier, is sent from the plug-in
386 // process to the renderer process to indicate that the plug-in allocated a 389 // process to the renderer process to indicate that the plug-in allocated a
387 // new TransportDIB that holds the GPU's rendered image. This information is 390 // new TransportDIB that holds the GPU's rendered image. This information is
388 // then forwarded to the browser process via a similar message. 391 // then forwarded to the browser process via a similar message.
389 IPC_MESSAGE_ROUTED4(PluginHostMsg_AcceleratedSurfaceSetTransportDIB, 392 IPC_MESSAGE_ROUTED4(PluginHostMsg_AcceleratedSurfaceSetTransportDIB,
390 gfx::PluginWindowHandle /* window */, 393 gfx::PluginWindowHandle /* window */,
391 int32 /* width */, 394 int32 /* width */,
392 int32 /* height */, 395 int32 /* height */,
393 TransportDIB::Handle /* handle to the TransportDIB */) 396 TransportDIB::Handle /* handle to the TransportDIB */)
394 397
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 IPC_MESSAGE_ROUTED1(PluginHostMsg_FreeTransportDIB, 431 IPC_MESSAGE_ROUTED1(PluginHostMsg_FreeTransportDIB,
429 TransportDIB::Id /* DIB id */) 432 TransportDIB::Id /* DIB id */)
430 433
431 // This message notifies the renderer process (and from there the 434 // This message notifies the renderer process (and from there the
432 // browser process) that the plug-in swapped the buffers associated 435 // browser process) that the plug-in swapped the buffers associated
433 // with the given "window", which should cause the browser to redraw 436 // with the given "window", which should cause the browser to redraw
434 // the various plug-ins' contents. 437 // the various plug-ins' contents.
435 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped, 438 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped,
436 gfx::PluginWindowHandle /* window */, 439 gfx::PluginWindowHandle /* window */,
437 uint64 /* surface_id */) 440 uint64 /* surface_id */)
441
442 //----------------------------------------------------------------------
443 // New Core Animation plugin implementation rendering via compositor.
444
445 // Notifies the renderer process that this plugin will be using the
446 // accelerated rendering path.
447 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginEnabledRendering)
448
449 // Notifies the renderer process that the plugin allocated a new
450 // IOSurface into which it is rendering. The renderer process forwards
451 // this IOSurface to the GPU process, causing it to be bound to a
452 // texture from which the compositor can render. Any previous
453 // IOSurface allocated by this plugin must be implicitly released by
454 // the receipt of this message.
455 IPC_MESSAGE_ROUTED3(PluginHostMsg_AcceleratedPluginAllocatedIOSurface,
456 int32 /* width */,
457 int32 /* height */,
458 uint32 /* surface_id */)
459
460 // Notifies the renderer process that the plugin produced a new frame
461 // of content into its IOSurface, and therefore that the compositor
462 // needs to redraw.
463 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginSwappedIOSurface)
438 #endif 464 #endif
439 465
440 IPC_MESSAGE_CONTROL1(PluginHostMsg_ClearSiteDataResult, 466 IPC_MESSAGE_CONTROL1(PluginHostMsg_ClearSiteDataResult,
441 bool /* success */) 467 bool /* success */)
442 468
443 IPC_MESSAGE_ROUTED2(PluginHostMsg_URLRedirectResponse, 469 IPC_MESSAGE_ROUTED2(PluginHostMsg_URLRedirectResponse,
444 bool /* allow */, 470 bool /* allow */,
445 int /* resource_id */) 471 int /* resource_id */)
446 472
447 473
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, 515 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct,
490 std::vector<NPVariant_Param> /* args */, 516 std::vector<NPVariant_Param> /* args */,
491 NPVariant_Param /* result_param */, 517 NPVariant_Param /* result_param */,
492 bool /* result */) 518 bool /* result */)
493 519
494 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 520 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
495 std::string /* script */, 521 std::string /* script */,
496 bool /* popups_allowed */, 522 bool /* popups_allowed */,
497 NPVariant_Param /* result_param */, 523 NPVariant_Param /* result_param */,
498 bool /* result */) 524 bool /* result */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698