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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock gpu video accelerator factory Created 5 years, 1 month 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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/shared_memory.h" 12 #include "base/memory/shared_memory.h"
13 #include "base/process/process.h" 13 #include "base/process/process.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/sync_socket.h" 15 #include "base/sync_socket.h"
16 #include "gpu/command_buffer/common/command_buffer.h" 16 #include "gpu/command_buffer/common/command_buffer.h"
17 #include "gpu/command_buffer/common/mailbox.h" 17 #include "gpu/command_buffer/common/mailbox.h"
18 #include "gpu/command_buffer/common/sync_token.h"
18 #include "gpu/ipc/gpu_command_buffer_traits.h" 19 #include "gpu/ipc/gpu_command_buffer_traits.h"
19 #include "ipc/ipc_channel_handle.h" 20 #include "ipc/ipc_channel_handle.h"
20 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h" 22 #include "ipc/ipc_message_utils.h"
22 #include "ipc/ipc_platform_file.h" 23 #include "ipc/ipc_platform_file.h"
23 #include "ppapi/c/dev/pp_video_capture_dev.h" 24 #include "ppapi/c/dev/pp_video_capture_dev.h"
24 #include "ppapi/c/dev/pp_video_dev.h" 25 #include "ppapi/c/dev/pp_video_dev.h"
25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 26 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
26 #include "ppapi/c/dev/ppb_url_util_dev.h" 27 #include "ppapi/c/dev/ppb_url_util_dev.h"
27 #include "ppapi/c/dev/ppp_printing_dev.h" 28 #include "ppapi/c/dev/ppp_printing_dev.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 274
274 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer) 275 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer)
275 IPC_STRUCT_TRAITS_MEMBER(resource) 276 IPC_STRUCT_TRAITS_MEMBER(resource)
276 IPC_STRUCT_TRAITS_MEMBER(source_rect) 277 IPC_STRUCT_TRAITS_MEMBER(source_rect)
277 IPC_STRUCT_TRAITS_END() 278 IPC_STRUCT_TRAITS_END()
278 279
279 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer) 280 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer)
280 IPC_STRUCT_TRAITS_MEMBER(mailbox) 281 IPC_STRUCT_TRAITS_MEMBER(mailbox)
281 IPC_STRUCT_TRAITS_MEMBER(target) 282 IPC_STRUCT_TRAITS_MEMBER(target)
282 IPC_STRUCT_TRAITS_MEMBER(sync_point) 283 IPC_STRUCT_TRAITS_MEMBER(sync_point)
284 IPC_STRUCT_TRAITS_MEMBER(sync_token)
dcheng 2015/10/27 19:09:28 It appears that the ParamTraits for gpu::SyncToken
David Yen 2015/10/28 22:03:43 Yes, should the owners be changed?
283 IPC_STRUCT_TRAITS_MEMBER(source_rect) 285 IPC_STRUCT_TRAITS_MEMBER(source_rect)
284 IPC_STRUCT_TRAITS_MEMBER(premult_alpha) 286 IPC_STRUCT_TRAITS_MEMBER(premult_alpha)
285 IPC_STRUCT_TRAITS_END() 287 IPC_STRUCT_TRAITS_END()
286 288
287 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 289 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
288 IPC_STRUCT_TRAITS_MEMBER(type) 290 IPC_STRUCT_TRAITS_MEMBER(type)
289 IPC_STRUCT_TRAITS_MEMBER(name) 291 IPC_STRUCT_TRAITS_MEMBER(name)
290 IPC_STRUCT_TRAITS_MEMBER(id) 292 IPC_STRUCT_TRAITS_MEMBER(id)
291 IPC_STRUCT_TRAITS_END() 293 IPC_STRUCT_TRAITS_END()
292 294
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 int32_t /* boundary_value */) 1395 int32_t /* boundary_value */)
1394 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled) 1396 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled)
1395 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply) 1397 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply)
1396 1398
1397 // Compositor 1399 // Compositor
1398 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create) 1400 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create)
1399 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers, 1401 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers,
1400 std::vector<ppapi::CompositorLayerData> /* layers */, 1402 std::vector<ppapi::CompositorLayerData> /* layers */,
1401 bool /* reset */) 1403 bool /* reset */)
1402 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply) 1404 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply)
1403 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource, 1405 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_Compositor_ReleaseResource,
1404 int32_t /* id */, 1406 int32_t /* id */,
1405 uint32_t /* sync_point */, 1407 uint32_t /* sync_point */,
1408 gpu::SyncToken /* sync_token */,
1406 bool /* is_lost */) 1409 bool /* is_lost */)
1407 1410
1408 // File chooser. 1411 // File chooser.
1409 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) 1412 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1410 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, 1413 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1411 bool /* save_as */, 1414 bool /* save_as */,
1412 bool /* open_multiple */, 1415 bool /* open_multiple */,
1413 std::string /* suggested_file_name */, 1416 std::string /* suggested_file_name */,
1414 std::vector<std::string> /* accept_mime_types */) 1417 std::vector<std::string> /* accept_mime_types */)
1415 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1418 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 std::vector<ppapi::HostResource> /* buffers */, 2328 std::vector<ppapi::HostResource> /* buffers */,
2326 uint32_t /* buffer_size */) 2329 uint32_t /* buffer_size */)
2327 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2330 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2328 uint32_t /* status */) 2331 uint32_t /* status */)
2329 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2332 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2330 uint32_t /* error */) 2333 uint32_t /* error */)
2331 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2334 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2332 uint32_t /* buffer */) 2335 uint32_t /* buffer */)
2333 2336
2334 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2337 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698