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

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

Issue 2552913003: Revert of Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/render_message_filter.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #if defined(OS_WIN) 172 #if defined(OS_WIN)
173 // Request that the given font be loaded by the host so it's cached by the 173 // Request that the given font be loaded by the host so it's cached by the
174 // OS. Please see ChildProcessHost::PreCacheFont for details. 174 // OS. Please see ChildProcessHost::PreCacheFont for details.
175 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, 175 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont,
176 LOGFONT /* font data */) 176 LOGFONT /* font data */)
177 177
178 // Release the cached font 178 // Release the cached font
179 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) 179 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts)
180 #endif // defined(OS_WIN) 180 #endif // defined(OS_WIN)
181 181
182 // Asks the browser to create a block of shared memory for the child process to
183 // fill in and pass back to the browser.
184 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap,
185 uint32_t /* buffer size */,
186 cc::SharedBitmapId,
187 base::SharedMemoryHandle)
188
189 // Informs the browser that the child allocated a shared bitmap.
190 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap,
191 uint32_t /* buffer size */,
192 base::SharedMemoryHandle,
193 cc::SharedBitmapId)
194
195 // Informs the browser that the child deleted a shared bitmap.
196 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap,
197 cc::SharedBitmapId)
198
182 // Asks the browser to create a gpu memory buffer. 199 // Asks the browser to create a gpu memory buffer.
183 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, 200 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
184 gfx::GpuMemoryBufferId /* new_id */, 201 gfx::GpuMemoryBufferId /* new_id */,
185 uint32_t /* width */, 202 uint32_t /* width */,
186 uint32_t /* height */, 203 uint32_t /* height */,
187 gfx::BufferFormat, 204 gfx::BufferFormat,
188 gfx::BufferUsage, 205 gfx::BufferUsage,
189 gfx::GpuMemoryBufferHandle) 206 gfx::GpuMemoryBufferHandle)
190 207
191 // Informs the browser that the child deleted a gpu memory buffer. 208 // Informs the browser that the child deleted a gpu memory buffer.
192 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, 209 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
193 gfx::GpuMemoryBufferId, 210 gfx::GpuMemoryBufferId,
194 gpu::SyncToken /* sync_token */) 211 gpu::SyncToken /* sync_token */)
195 212
196 #if defined(OS_LINUX) 213 #if defined(OS_LINUX)
197 // Asks the browser to change the priority of thread. 214 // Asks the browser to change the priority of thread.
198 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, 215 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority,
199 base::PlatformThreadId, 216 base::PlatformThreadId,
200 base::ThreadPriority) 217 base::ThreadPriority)
201 #endif 218 #endif
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/render_message_filter.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698