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

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

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CalledOnValidThread() check. Created 6 years, 9 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 | Annotate | Revision Log
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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, 60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType,
61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) 61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST)
62 62
63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) 63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle)
64 IPC_STRUCT_TRAITS_MEMBER(type) 64 IPC_STRUCT_TRAITS_MEMBER(type)
65 IPC_STRUCT_TRAITS_MEMBER(handle) 65 IPC_STRUCT_TRAITS_MEMBER(handle)
66 #if defined(OS_MACOSX) 66 #if defined(OS_MACOSX)
67 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) 67 IPC_STRUCT_TRAITS_MEMBER(io_surface_id)
68 #endif 68 #endif
69 #if defined(OS_ANDROID)
70 IPC_STRUCT_TRAITS_MEMBER(surface_texture_id)
71 #endif
69 IPC_STRUCT_TRAITS_END() 72 IPC_STRUCT_TRAITS_END()
70 73
71 #undef IPC_MESSAGE_EXPORT 74 #undef IPC_MESSAGE_EXPORT
72 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 75 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
73 76
74 #define IPC_MESSAGE_START ChildProcessMsgStart 77 #define IPC_MESSAGE_START ChildProcessMsgStart
75 78
76 // Messages sent from the browser to the child process. 79 // Messages sent from the browser to the child process.
77 80
78 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child 81 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, 172 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
170 std::string /* output */) 173 std::string /* output */)
171 #endif 174 #endif
172 175
173 // Asks the browser to create a gpu memory buffer. 176 // Asks the browser to create a gpu memory buffer.
174 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, 177 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
175 uint32 /* width */, 178 uint32 /* width */,
176 uint32 /* height */, 179 uint32 /* height */,
177 uint32 /* internalformat */, 180 uint32 /* internalformat */,
178 gfx::GpuMemoryBufferHandle) 181 gfx::GpuMemoryBufferHandle)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698