| OLD | NEW |
| 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 file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
| 6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // GPU Messages | 253 // GPU Messages |
| 254 // These are messages from the browser to the GPU process. | 254 // These are messages from the browser to the GPU process. |
| 255 | 255 |
| 256 // Tells the GPU process to initialize itself. The browser explicitly | 256 // Tells the GPU process to initialize itself. The browser explicitly |
| 257 // requests this be done so that we are guaranteed that the channel is set | 257 // requests this be done so that we are guaranteed that the channel is set |
| 258 // up between the browser and GPU process before doing any work that might | 258 // up between the browser and GPU process before doing any work that might |
| 259 // potentially crash the GPU process. Detection of the child process | 259 // potentially crash the GPU process. Detection of the child process |
| 260 // exiting abruptly is predicated on having the IPC channel set up. | 260 // exiting abruptly is predicated on having the IPC channel set up. |
| 261 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) | 261 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) |
| 262 | 262 |
| 263 // Tells the GPU process to shutdown itself. |
| 264 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) |
| 265 |
| 263 // Tells the GPU process to create a new channel for communication with a | 266 // Tells the GPU process to create a new channel for communication with a |
| 264 // given client. The channel name is returned in a | 267 // given client. The channel name is returned in a |
| 265 // GpuHostMsg_ChannelEstablished message. The client ID is passed so that | 268 // GpuHostMsg_ChannelEstablished message. The client ID is passed so that |
| 266 // the GPU process reuses an existing channel to that process if it exists. | 269 // the GPU process reuses an existing channel to that process if it exists. |
| 267 // This ID is a unique opaque identifier generated by the browser process. | 270 // This ID is a unique opaque identifier generated by the browser process. |
| 268 IPC_MESSAGE_CONTROL3(GpuMsg_EstablishChannel, | 271 IPC_MESSAGE_CONTROL3(GpuMsg_EstablishChannel, |
| 269 int /* client_id */, | 272 int /* client_id */, |
| 270 bool /* share_context */, | 273 bool /* share_context */, |
| 271 bool /* allow_future_sync_points */) | 274 bool /* allow_future_sync_points */) |
| 272 | 275 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 329 |
| 327 // Tells the GPU process to hang. | 330 // Tells the GPU process to hang. |
| 328 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 331 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
| 329 | 332 |
| 330 // Tells the GPU process to disable the watchdog thread. | 333 // Tells the GPU process to disable the watchdog thread. |
| 331 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 334 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
| 332 | 335 |
| 333 // Tells the GPU process that the browser has seen a GPU switch. | 336 // Tells the GPU process that the browser has seen a GPU switch. |
| 334 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 337 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
| 335 | 338 |
| 336 // Tells the GPU process to delete the default_offscreen surface. It will also | |
| 337 // close the display and any other resources when the last GL surface is | |
| 338 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished. | |
| 339 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources) | |
| 340 | |
| 341 // Sends an input event to the gpu service. | 339 // Sends an input event to the gpu service. |
| 342 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState, | 340 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState, |
| 343 int, /* client_id */ | 341 int, /* client_id */ |
| 344 unsigned int, /* target */ | 342 unsigned int, /* target */ |
| 345 gpu::ValueState /* valuestate */) | 343 gpu::ValueState /* valuestate */) |
| 346 | 344 |
| 347 //------------------------------------------------------------------------------ | 345 //------------------------------------------------------------------------------ |
| 348 // GPU Host Messages | 346 // GPU Host Messages |
| 349 // These are messages to the browser. | 347 // These are messages to the browser. |
| 350 | 348 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 gpu::error::ContextLostReason /* reason */, | 433 gpu::error::ContextLostReason /* reason */, |
| 436 GURL /* url */) | 434 GURL /* url */) |
| 437 | 435 |
| 438 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, | 436 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, |
| 439 GURL /* url */) | 437 GURL /* url */) |
| 440 | 438 |
| 441 // Tells the browser about GPU memory usage statistics for UMA logging. | 439 // Tells the browser about GPU memory usage statistics for UMA logging. |
| 442 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, | 440 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, |
| 443 content::GPUMemoryUmaStats /* GPU memory UMA stats */) | 441 content::GPUMemoryUmaStats /* GPU memory UMA stats */) |
| 444 | 442 |
| 445 // Response to GpuMsg_RelinquishResources. | |
| 446 IPC_MESSAGE_CONTROL0(GpuHostMsg_ResourcesRelinquished) | |
| 447 | |
| 448 // Tells the browser that a context has subscribed to a new target and | 443 // Tells the browser that a context has subscribed to a new target and |
| 449 // the browser should start sending the corresponding information | 444 // the browser should start sending the corresponding information |
| 450 IPC_MESSAGE_CONTROL2(GpuHostMsg_AddSubscription, | 445 IPC_MESSAGE_CONTROL2(GpuHostMsg_AddSubscription, |
| 451 int32 /* client_id */, | 446 int32 /* client_id */, |
| 452 unsigned int /* target */) | 447 unsigned int /* target */) |
| 453 | 448 |
| 454 // Tells the browser that no contexts are subscribed to the target anymore | 449 // Tells the browser that no contexts are subscribed to the target anymore |
| 455 // so the browser should stop sending the corresponding information | 450 // so the browser should stop sending the corresponding information |
| 456 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, | 451 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, |
| 457 int32 /* client_id */, | 452 int32 /* client_id */, |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 792 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
| 798 | 793 |
| 799 //------------------------------------------------------------------------------ | 794 //------------------------------------------------------------------------------ |
| 800 // Accelerated JPEG Decoder Host Messages | 795 // Accelerated JPEG Decoder Host Messages |
| 801 // These messages are sent from the GPU process to Browser process. | 796 // These messages are sent from the GPU process to Browser process. |
| 802 // | 797 // |
| 803 // Report decode status. | 798 // Report decode status. |
| 804 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 799 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
| 805 int32, /* bitstream_buffer_id */ | 800 int32, /* bitstream_buffer_id */ |
| 806 media::JpegDecodeAccelerator::Error /* error */) | 801 media::JpegDecodeAccelerator::Error /* error */) |
| OLD | NEW |