Chromium Code Reviews| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 316 | 316 |
| 317 // Tells the GPU process to crash. | 317 // Tells the GPU process to crash. |
| 318 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 318 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
| 319 | 319 |
| 320 // Tells the GPU process to hang. | 320 // Tells the GPU process to hang. |
| 321 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 321 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
| 322 | 322 |
| 323 // Tells the GPU process to disable the watchdog thread. | 323 // Tells the GPU process to disable the watchdog thread. |
| 324 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 324 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
| 325 | 325 |
| 326 // Tells the browser to initialize GpuPlatformSupport. | |
|
rjkroege
2014/06/16 21:38:49
isn't it telling the GPU process?
spang
2014/06/17 14:47:34
Yes - oops.
| |
| 327 IPC_MESSAGE_CONTROL1(GpuMsg_InitializePlatformSupport, | |
| 328 int32 /* host_route_id */) | |
| 329 | |
| 326 //------------------------------------------------------------------------------ | 330 //------------------------------------------------------------------------------ |
| 327 // GPU Host Messages | 331 // GPU Host Messages |
| 328 // These are messages to the browser. | 332 // These are messages to the browser. |
| 329 | 333 |
| 330 // A renderer sends this when it wants to create a connection to the GPU | 334 // A renderer sends this when it wants to create a connection to the GPU |
| 331 // process. The browser will create the GPU process if necessary, and will | 335 // process. The browser will create the GPU process if necessary, and will |
| 332 // return a handle to the channel via a GpuChannelEstablished message. | 336 // return a handle to the channel via a GpuChannelEstablished message. |
| 333 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 337 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
| 334 content::CauseForGpuLaunch, | 338 content::CauseForGpuLaunch, |
| 335 int /* client id */, | 339 int /* client id */, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 396 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 400 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 397 int /*severity*/, | 401 int /*severity*/, |
| 398 std::string /* header */, | 402 std::string /* header */, |
| 399 std::string /* message */) | 403 std::string /* message */) |
| 400 | 404 |
| 401 // Tells the browser that a new accelerated surface was initialized. | 405 // Tells the browser that a new accelerated surface was initialized. |
| 402 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, | 406 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, |
| 403 int32 /* surface_id */, | 407 int32 /* surface_id */, |
| 404 int32 /* route_id */) | 408 int32 /* route_id */) |
| 405 | 409 |
| 410 // Tells the browser that GpuPlatformSupport was initialized. | |
| 411 IPC_MESSAGE_CONTROL2(GpuHostMsg_PlatformSupportInitialized, | |
| 412 int32 /* host_route_id */, | |
| 413 int32 /* gpu_route_id */) | |
| 414 | |
| 406 // Tells the browser that a frame with the specific latency info was drawn to | 415 // Tells the browser that a frame with the specific latency info was drawn to |
| 407 // the screen | 416 // the screen |
| 408 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, | 417 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, |
| 409 std::vector<ui::LatencyInfo> /* latency_info */) | 418 std::vector<ui::LatencyInfo> /* latency_info */) |
| 410 | 419 |
| 411 // Same as above with a rect of the part of the surface that changed. | 420 // Same as above with a rect of the part of the surface that changed. |
| 412 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 421 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 413 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 422 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 414 | 423 |
| 415 // This message notifies the browser process that the renderer | 424 // This message notifies the browser process that the renderer |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 780 int32 /* bitstream_buffer_id */, | 789 int32 /* bitstream_buffer_id */, |
| 781 uint32 /* payload_size */, | 790 uint32 /* payload_size */, |
| 782 bool /* key_frame */) | 791 bool /* key_frame */) |
| 783 | 792 |
| 784 // Report error condition. | 793 // Report error condition. |
| 785 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 794 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 786 media::VideoEncodeAccelerator::Error /* error */) | 795 media::VideoEncodeAccelerator::Error /* error */) |
| 787 | 796 |
| 788 // Send destroy request to the encoder. | 797 // Send destroy request to the encoder. |
| 789 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 798 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |