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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 // plug-in to indicate that a new backing store was allocated for that 2231 // plug-in to indicate that a new backing store was allocated for that
2232 // plug-in instance. 2232 // plug-in instance.
2233 // 2233 //
2234 // NOTE: the original intent was to pass a mach port as the IOSurface 2234 // NOTE: the original intent was to pass a mach port as the IOSurface
2235 // identifier but it looks like that will be a lot of work. For now we pass an 2235 // identifier but it looks like that will be a lot of work. For now we pass an
2236 // ID from IOSurfaceGetID. 2236 // ID from IOSurfaceGetID.
2237 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface, 2237 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface,
2238 gfx::PluginWindowHandle /* window */, 2238 gfx::PluginWindowHandle /* window */,
2239 int32 /* width */, 2239 int32 /* width */,
2240 int32 /* height */, 2240 int32 /* height */,
2241 uint64 /* identifier for IOSurface */) 2241 uint64 /* surface_id */)
2242 2242
2243 // This message notifies the browser process that the plug-in 2243 // This message notifies the browser process that the plug-in
2244 // swapped the buffers associated with the given "window", which 2244 // swapped the buffers associated with the given "window", which
2245 // should cause the browser to redraw the various plug-ins' 2245 // should cause the browser to redraw the various plug-ins'
2246 // contents. 2246 // contents.
2247 IPC_MESSAGE_ROUTED1(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, 2247 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped,
2248 gfx::PluginWindowHandle /* window */) 2248 gfx::PluginWindowHandle /* window */,
2249 uint64 /* surface_id */)
2249 #endif 2250 #endif
2250 2251
2251 // A renderer sends this to the browser process when it wants to create a 2252 // A renderer sends this to the browser process when it wants to create a
2252 // worker. The browser will create the worker process if necessary, and 2253 // worker. The browser will create the worker process if necessary, and
2253 // will return the route id on success. On error returns MSG_ROUTING_NONE. 2254 // will return the route id on success. On error returns MSG_ROUTING_NONE.
2254 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, 2255 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
2255 ViewHostMsg_CreateWorker_Params, 2256 ViewHostMsg_CreateWorker_Params,
2256 int /* route_id */) 2257 int /* route_id */)
2257 2258
2258 // This message is sent to the browser to see if an instance of this shared 2259 // This message is sent to the browser to see if an instance of this shared
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3056 base::PlatformFileInfo, /* info */ 3057 base::PlatformFileInfo, /* info */
3057 base::PlatformFileError /* error_code */) 3058 base::PlatformFileError /* error_code */)
3058 3059
3059 // Get the directory's contents. 3060 // Get the directory's contents.
3060 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, 3061 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents,
3061 FilePath /* path */, 3062 FilePath /* path */,
3062 PepperDirContents, /* contents */ 3063 PepperDirContents, /* contents */
3063 base::PlatformFileError /* error_code */) 3064 base::PlatformFileError /* error_code */)
3064 3065
3065 IPC_END_MESSAGES(ViewHost) 3066 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698