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 |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/content_param_traits.h" |
13 #include "content/common/gpu/gpu_memory_uma_stats.h" | 14 #include "content/common/gpu/gpu_memory_uma_stats.h" |
14 #include "content/common/gpu/gpu_process_launch_causes.h" | 15 #include "content/common/gpu/gpu_process_launch_causes.h" |
15 #include "content/common/gpu/gpu_result_codes.h" | 16 #include "content/common/gpu/gpu_result_codes.h" |
16 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
17 #include "content/public/common/gpu_memory_stats.h" | 18 #include "content/public/common/gpu_memory_stats.h" |
18 #include "gpu/command_buffer/common/capabilities.h" | 19 #include "gpu/command_buffer/common/capabilities.h" |
19 #include "gpu/command_buffer/common/command_buffer.h" | 20 #include "gpu/command_buffer/common/command_buffer.h" |
20 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
21 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
22 #include "gpu/command_buffer/common/mailbox.h" | 23 #include "gpu/command_buffer/common/mailbox.h" |
23 #include "gpu/config/gpu_info.h" | 24 #include "gpu/config/gpu_info.h" |
24 #include "gpu/ipc/gpu_command_buffer_traits.h" | 25 #include "gpu/ipc/gpu_command_buffer_traits.h" |
25 #include "ipc/ipc_channel_handle.h" | 26 #include "ipc/ipc_channel_handle.h" |
26 #include "ipc/ipc_message_macros.h" | 27 #include "ipc/ipc_message_macros.h" |
27 #include "media/base/video_frame.h" | 28 #include "media/base/video_frame.h" |
28 #include "media/video/video_decode_accelerator.h" | 29 #include "media/video/video_decode_accelerator.h" |
29 #include "media/video/video_encode_accelerator.h" | 30 #include "media/video/video_encode_accelerator.h" |
| 31 #include "third_party/WebKit/public/web/WebInputEvent.h" |
30 #include "ui/events/latency_info.h" | 32 #include "ui/events/latency_info.h" |
31 #include "ui/gfx/gpu_memory_buffer.h" | 33 #include "ui/gfx/gpu_memory_buffer.h" |
32 #include "ui/gfx/native_widget_types.h" | 34 #include "ui/gfx/native_widget_types.h" |
33 #include "ui/gfx/size.h" | 35 #include "ui/gfx/size.h" |
34 #include "ui/gl/gpu_preference.h" | 36 #include "ui/gl/gpu_preference.h" |
35 | 37 |
36 #if defined(OS_ANDROID) | 38 #if defined(OS_ANDROID) |
37 #include "content/common/android/surface_texture_peer.h" | 39 #include "content/common/android/surface_texture_peer.h" |
38 #endif | 40 #endif |
39 | 41 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 289 |
288 // Tells the GPU process to crash. | 290 // Tells the GPU process to crash. |
289 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 291 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
290 | 292 |
291 // Tells the GPU process to hang. | 293 // Tells the GPU process to hang. |
292 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 294 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
293 | 295 |
294 // Tells the GPU process to disable the watchdog thread. | 296 // Tells the GPU process to disable the watchdog thread. |
295 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 297 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
296 | 298 |
| 299 // Sends an input event to the gpu service. |
| 300 IPC_MESSAGE_CONTROL2(GpuMsg_HandleInputEvent, |
| 301 IPC::WebInputEventPointer /* event */, |
| 302 bool /* is_keyboard_shortcut */) |
| 303 |
297 //------------------------------------------------------------------------------ | 304 //------------------------------------------------------------------------------ |
298 // GPU Host Messages | 305 // GPU Host Messages |
299 // These are messages to the browser. | 306 // These are messages to the browser. |
300 | 307 |
301 // A renderer sends this when it wants to create a connection to the GPU | 308 // A renderer sends this when it wants to create a connection to the GPU |
302 // process. The browser will create the GPU process if necessary, and will | 309 // process. The browser will create the GPU process if necessary, and will |
303 // return a handle to the channel via a GpuChannelEstablished message. | 310 // return a handle to the channel via a GpuChannelEstablished message. |
304 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 311 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
305 content::CauseForGpuLaunch, | 312 content::CauseForGpuLaunch, |
306 int /* client id */, | 313 int /* client id */, |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 int32 /* bitstream_buffer_id */, | 723 int32 /* bitstream_buffer_id */, |
717 uint32 /* payload_size */, | 724 uint32 /* payload_size */, |
718 bool /* key_frame */) | 725 bool /* key_frame */) |
719 | 726 |
720 // Report error condition. | 727 // Report error condition. |
721 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 728 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
722 media::VideoEncodeAccelerator::Error /* error */) | 729 media::VideoEncodeAccelerator::Error /* error */) |
723 | 730 |
724 // Send destroy request to the encoder. | 731 // Send destroy request to the encoder. |
725 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 732 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |