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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // Tells the GPU process to report video_memory information for the task manager | 324 // Tells the GPU process to report video_memory information for the task manager |
325 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 325 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
326 | 326 |
327 #if defined(OS_MACOSX) | 327 #if defined(OS_MACOSX) |
328 // Tells the GPU process that the browser process has handled the swap | 328 // Tells the GPU process that the browser process has handled the swap |
329 // buffers or post sub-buffer request. | 329 // buffers or post sub-buffer request. |
330 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, | 330 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, |
331 AcceleratedSurfaceMsg_BufferPresented_Params) | 331 AcceleratedSurfaceMsg_BufferPresented_Params) |
332 #endif | 332 #endif |
333 | 333 |
| 334 #if defined(OS_ANDROID) |
334 // Tells the GPU process to wake up the GPU because we're about to draw. | 335 // Tells the GPU process to wake up the GPU because we're about to draw. |
335 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_WakeUpGpu) | 336 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) |
| 337 #endif |
336 | 338 |
337 // Tells the GPU process to remove all contexts. | 339 // Tells the GPU process to remove all contexts. |
338 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 340 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
339 | 341 |
340 // Tells the GPU process to crash. | 342 // Tells the GPU process to crash. |
341 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 343 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
342 | 344 |
343 // Tells the GPU process to hang. | 345 // Tells the GPU process to hang. |
344 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 346 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
345 | 347 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 // Response from GPU to a GpuMsg_GetVideoMemory. | 421 // Response from GPU to a GpuMsg_GetVideoMemory. |
420 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 422 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
421 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 423 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
422 | 424 |
423 // Message from GPU to add a GPU log message to the about:gpu page. | 425 // Message from GPU to add a GPU log message to the about:gpu page. |
424 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 426 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
425 int /*severity*/, | 427 int /*severity*/, |
426 std::string /* header */, | 428 std::string /* header */, |
427 std::string /* message */) | 429 std::string /* message */) |
428 | 430 |
429 // Tells the browser that a new accelerated surface was initialized. | |
430 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, | |
431 int32 /* surface_id */, | |
432 int32 /* route_id */) | |
433 | |
434 | 431 |
435 #if defined(OS_MACOSX) | 432 #if defined(OS_MACOSX) |
436 // Tells the browser that an accelerated surface has swapped. | 433 // Tells the browser that an accelerated surface has swapped. |
437 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 434 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
438 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 435 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
439 #endif | 436 #endif |
440 | 437 |
441 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, | 438 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, |
442 GURL /* url */) | 439 GURL /* url */) |
443 | 440 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 796 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
800 | 797 |
801 //------------------------------------------------------------------------------ | 798 //------------------------------------------------------------------------------ |
802 // Accelerated JPEG Decoder Host Messages | 799 // Accelerated JPEG Decoder Host Messages |
803 // These messages are sent from the GPU process to Browser process. | 800 // These messages are sent from the GPU process to Browser process. |
804 // | 801 // |
805 // Report decode status. | 802 // Report decode status. |
806 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 803 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
807 int32, /* bitstream_buffer_id */ | 804 int32, /* bitstream_buffer_id */ |
808 media::JpegDecodeAccelerator::Error /* error */) | 805 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |