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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 5 years, 3 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
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 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "ppapi/c/private/ppp_pdf.h" 54 #include "ppapi/c/private/ppp_pdf.h"
55 #include "ppapi/proxy/host_resolver_private_resource.h" 55 #include "ppapi/proxy/host_resolver_private_resource.h"
56 #include "ppapi/proxy/network_list_resource.h" 56 #include "ppapi/proxy/network_list_resource.h"
57 #include "ppapi/proxy/ppapi_param_traits.h" 57 #include "ppapi/proxy/ppapi_param_traits.h"
58 #include "ppapi/proxy/ppapi_proxy_export.h" 58 #include "ppapi/proxy/ppapi_proxy_export.h"
59 #include "ppapi/proxy/resource_message_params.h" 59 #include "ppapi/proxy/resource_message_params.h"
60 #include "ppapi/proxy/serialized_flash_menu.h" 60 #include "ppapi/proxy/serialized_flash_menu.h"
61 #include "ppapi/proxy/serialized_handle.h" 61 #include "ppapi/proxy/serialized_handle.h"
62 #include "ppapi/proxy/serialized_structs.h" 62 #include "ppapi/proxy/serialized_structs.h"
63 #include "ppapi/proxy/serialized_var.h" 63 #include "ppapi/proxy/serialized_var.h"
64 #include "ppapi/shared_impl/command_buffer_id_pair.h"
64 #include "ppapi/shared_impl/compositor_layer_data.h" 65 #include "ppapi/shared_impl/compositor_layer_data.h"
65 #include "ppapi/shared_impl/dir_contents.h" 66 #include "ppapi/shared_impl/dir_contents.h"
66 #include "ppapi/shared_impl/file_growth.h" 67 #include "ppapi/shared_impl/file_growth.h"
67 #include "ppapi/shared_impl/file_path.h" 68 #include "ppapi/shared_impl/file_path.h"
68 #include "ppapi/shared_impl/file_ref_create_info.h" 69 #include "ppapi/shared_impl/file_ref_create_info.h"
69 #include "ppapi/shared_impl/media_stream_audio_track_shared.h" 70 #include "ppapi/shared_impl/media_stream_audio_track_shared.h"
70 #include "ppapi/shared_impl/media_stream_video_track_shared.h" 71 #include "ppapi/shared_impl/media_stream_video_track_shared.h"
71 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" 72 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
72 #include "ppapi/shared_impl/ppapi_preferences.h" 73 #include "ppapi/shared_impl/ppapi_preferences.h"
73 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 74 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) 125 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
125 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 126 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) 127 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
127 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, 128 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
128 PP_UDPSOCKET_OPTION_MULTICAST_TTL) 129 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
129 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 130 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
130 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 131 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) 132 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
132 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) 133 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) 134 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
135 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CommandBufferNamespace,
136 gpu::kCommandBufferNamespace_Invalid,
137 gpu::NUM_COMMAND_BUFFER_NAMESPACES - 1)
134 138
135 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 139 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
136 IPC_STRUCT_TRAITS_MEMBER(x) 140 IPC_STRUCT_TRAITS_MEMBER(x)
137 IPC_STRUCT_TRAITS_MEMBER(y) 141 IPC_STRUCT_TRAITS_MEMBER(y)
138 IPC_STRUCT_TRAITS_END() 142 IPC_STRUCT_TRAITS_END()
139 143
140 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 144 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
141 IPC_STRUCT_TRAITS_MEMBER(x) 145 IPC_STRUCT_TRAITS_MEMBER(x)
142 IPC_STRUCT_TRAITS_MEMBER(y) 146 IPC_STRUCT_TRAITS_MEMBER(y)
143 IPC_STRUCT_TRAITS_END() 147 IPC_STRUCT_TRAITS_END()
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 428
425 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) 429 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
426 IPC_STRUCT_TRAITS_MEMBER(name) 430 IPC_STRUCT_TRAITS_MEMBER(name)
427 IPC_STRUCT_TRAITS_MEMBER(type) 431 IPC_STRUCT_TRAITS_MEMBER(type)
428 IPC_STRUCT_TRAITS_MEMBER(state) 432 IPC_STRUCT_TRAITS_MEMBER(state)
429 IPC_STRUCT_TRAITS_MEMBER(addresses) 433 IPC_STRUCT_TRAITS_MEMBER(addresses)
430 IPC_STRUCT_TRAITS_MEMBER(display_name) 434 IPC_STRUCT_TRAITS_MEMBER(display_name)
431 IPC_STRUCT_TRAITS_MEMBER(mtu) 435 IPC_STRUCT_TRAITS_MEMBER(mtu)
432 IPC_STRUCT_TRAITS_END() 436 IPC_STRUCT_TRAITS_END()
433 437
438 IPC_STRUCT_TRAITS_BEGIN(ppapi::CommandBufferIDPair)
439 IPC_STRUCT_TRAITS_MEMBER(namespace_id)
440 IPC_STRUCT_TRAITS_MEMBER(command_buffer_id)
441 IPC_STRUCT_TRAITS_END()
442
434 // Only whitelisted switches passed through PpapiNaClPluginArgs. 443 // Only whitelisted switches passed through PpapiNaClPluginArgs.
435 // The list of switches can be found in: 444 // The list of switches can be found in:
436 // components/nacl/browser/nacl_process_host.cc 445 // components/nacl/browser/nacl_process_host.cc
437 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) 446 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
438 IPC_STRUCT_TRAITS_MEMBER(off_the_record) 447 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
439 IPC_STRUCT_TRAITS_MEMBER(permissions) 448 IPC_STRUCT_TRAITS_MEMBER(permissions)
440 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) 449 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
441 IPC_STRUCT_TRAITS_MEMBER(switch_names) 450 IPC_STRUCT_TRAITS_MEMBER(switch_names)
442 IPC_STRUCT_TRAITS_MEMBER(switch_values) 451 IPC_STRUCT_TRAITS_MEMBER(switch_values)
443 IPC_STRUCT_TRAITS_END() 452 IPC_STRUCT_TRAITS_END()
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 ppapi::HostResource /* audio_id */, 899 ppapi::HostResource /* audio_id */,
891 bool /* play */) 900 bool /* play */)
892 901
893 // PPB_Core. 902 // PPB_Core.
894 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, 903 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
895 ppapi::HostResource) 904 ppapi::HostResource)
896 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, 905 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
897 ppapi::HostResource) 906 ppapi::HostResource)
898 907
899 // PPB_Graphics3D. 908 // PPB_Graphics3D.
900 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create, 909 IPC_SYNC_MESSAGE_ROUTED3_4(PpapiHostMsg_PPBGraphics3D_Create,
901 PP_Instance /* instance */, 910 PP_Instance /* instance */,
902 ppapi::HostResource /* share_context */, 911 ppapi::HostResource /* share_context */,
903 std::vector<int32_t> /* attrib_list */, 912 std::vector<int32_t> /* attrib_list */,
904 ppapi::HostResource /* result */, 913 ppapi::HostResource /* result */,
905 gpu::Capabilities /* capabilities */, 914 gpu::Capabilities /* capabilities */,
906 ppapi::proxy::SerializedHandle /* shared_state */) 915 ppapi::proxy::SerializedHandle /* shared_state */,
916 ppapi::CommandBufferIDPair /* id_pair */)
907 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, 917 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
908 ppapi::HostResource /* context */, 918 ppapi::HostResource /* context */,
909 int32 /* transfer_buffer_id */) 919 int32 /* transfer_buffer_id */)
910 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange, 920 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange,
911 ppapi::HostResource /* context */, 921 ppapi::HostResource /* context */,
912 int32 /* start */, 922 int32 /* start */,
913 int32 /* end */, 923 int32 /* end */,
914 gpu::CommandBuffer::State /* state */, 924 gpu::CommandBuffer::State /* state */,
915 bool /* success */) 925 bool /* success */)
916 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange, 926 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange,
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 std::vector<ppapi::HostResource> /* buffers */, 2343 std::vector<ppapi::HostResource> /* buffers */,
2334 uint32_t /* buffer_size */) 2344 uint32_t /* buffer_size */)
2335 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2345 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2336 uint32_t /* status */) 2346 uint32_t /* status */)
2337 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2347 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2338 uint32_t /* error */) 2348 uint32_t /* error */)
2339 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2349 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2340 uint32_t /* buffer */) 2350 uint32_t /* buffer */)
2341 2351
2342 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2352 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698