| 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" |
| 24 #include "gpu/command_buffer/common/value_state.h" |
| 23 #include "gpu/config/gpu_info.h" | 25 #include "gpu/config/gpu_info.h" |
| 24 #include "gpu/ipc/gpu_command_buffer_traits.h" | 26 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 25 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
| 26 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
| 27 #include "media/base/video_frame.h" | 29 #include "media/base/video_frame.h" |
| 28 #include "media/video/video_decode_accelerator.h" | 30 #include "media/video/video_decode_accelerator.h" |
| 29 #include "media/video/video_encode_accelerator.h" | 31 #include "media/video/video_encode_accelerator.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" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 296 |
| 295 // Tells the GPU process to hang. | 297 // Tells the GPU process to hang. |
| 296 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 298 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
| 297 | 299 |
| 298 // Tells the GPU process to disable the watchdog thread. | 300 // Tells the GPU process to disable the watchdog thread. |
| 299 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 301 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
| 300 | 302 |
| 301 // Tells the GPU process that the browser has seen a GPU switch. | 303 // Tells the GPU process that the browser has seen a GPU switch. |
| 302 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 304 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
| 303 | 305 |
| 306 // Sends an input event to the gpu service. |
| 307 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState, |
| 308 int, /* client_id */ |
| 309 unsigned int, /* target */ |
| 310 gpu::ValueState /* valuestate */) |
| 311 |
| 304 //------------------------------------------------------------------------------ | 312 //------------------------------------------------------------------------------ |
| 305 // GPU Host Messages | 313 // GPU Host Messages |
| 306 // These are messages to the browser. | 314 // These are messages to the browser. |
| 307 | 315 |
| 308 // A renderer sends this when it wants to create a connection to the GPU | 316 // A renderer sends this when it wants to create a connection to the GPU |
| 309 // process. The browser will create the GPU process if necessary, and will | 317 // process. The browser will create the GPU process if necessary, and will |
| 310 // return a handle to the channel via a GpuChannelEstablished message. | 318 // return a handle to the channel via a GpuChannelEstablished message. |
| 311 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 319 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
| 312 content::CauseForGpuLaunch, | 320 content::CauseForGpuLaunch, |
| 313 int /* client id */, | 321 int /* client id */, |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 int32 /* bitstream_buffer_id */, | 730 int32 /* bitstream_buffer_id */, |
| 723 uint32 /* payload_size */, | 731 uint32 /* payload_size */, |
| 724 bool /* key_frame */) | 732 bool /* key_frame */) |
| 725 | 733 |
| 726 // Report error condition. | 734 // Report error condition. |
| 727 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 735 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 728 media::VideoEncodeAccelerator::Error /* error */) | 736 media::VideoEncodeAccelerator::Error /* error */) |
| 729 | 737 |
| 730 // Send destroy request to the encoder. | 738 // Send destroy request to the encoder. |
| 731 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 739 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |