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

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

Issue 1429213002: Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo 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 // Common IPC messages used for child processes. 5 // Common IPC messages used for child processes.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/tracked_objects.h" 12 #include "base/tracked_objects.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "cc/resources/shared_bitmap_manager.h" 14 #include "cc/resources/shared_bitmap_manager.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/host_discardable_shared_memory_manager.h" 16 #include "content/common/host_discardable_shared_memory_manager.h"
17 #include "gpu/command_buffer/common/sync_token.h"
17 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
18 #include "ui/gfx/gpu_memory_buffer.h" 19 #include "ui/gfx/gpu_memory_buffer.h"
19 #include "ui/gfx/ipc/gfx_param_traits.h" 20 #include "ui/gfx/ipc/gfx_param_traits.h"
20 21
21 #if defined(OS_MACOSX) 22 #if defined(OS_MACOSX)
22 #include "content/common/mac/io_surface_manager_token.h" 23 #include "content/common/mac/io_surface_manager_token.h"
23 #endif 24 #endif
24 25
25 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status, 26 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status,
26 tracked_objects::ThreadData::STATUS_LAST) 27 tracked_objects::ThreadData::STATUS_LAST)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 gfx::GpuMemoryBufferId /* new_id */, 204 gfx::GpuMemoryBufferId /* new_id */,
204 uint32 /* width */, 205 uint32 /* width */,
205 uint32 /* height */, 206 uint32 /* height */,
206 gfx::BufferFormat, 207 gfx::BufferFormat,
207 gfx::BufferUsage, 208 gfx::BufferUsage,
208 gfx::GpuMemoryBufferHandle) 209 gfx::GpuMemoryBufferHandle)
209 210
210 // Informs the browser that the child deleted a gpu memory buffer. 211 // Informs the browser that the child deleted a gpu memory buffer.
211 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, 212 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
212 gfx::GpuMemoryBufferId, 213 gfx::GpuMemoryBufferId,
213 uint32 /* sync_point */) 214 gpu::SyncToken /* sync_token */)
214 215
215 // Asks the browser to create a block of discardable shared memory for the 216 // Asks the browser to create a block of discardable shared memory for the
216 // child process. 217 // child process.
217 IPC_SYNC_MESSAGE_CONTROL2_1( 218 IPC_SYNC_MESSAGE_CONTROL2_1(
218 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 219 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
219 uint32 /* size */, 220 uint32 /* size */,
220 content::DiscardableSharedMemoryId, 221 content::DiscardableSharedMemoryId,
221 base::SharedMemoryHandle) 222 base::SharedMemoryHandle)
222 223
223 // Informs the browser that the child deleted a block of discardable shared 224 // Informs the browser that the child deleted a block of discardable shared
224 // memory. 225 // memory.
225 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, 226 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
226 content::DiscardableSharedMemoryId) 227 content::DiscardableSharedMemoryId)
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698