| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 295 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
| 294 | 296 |
| 295 // Tells the GPU process that the browser has seen a GPU switch. | 297 // Tells the GPU process that the browser has seen a GPU switch. |
| 296 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 298 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
| 297 | 299 |
| 298 // Tells the GPU process to delete the default_offscreen surface. It will also | 300 // Tells the GPU process to delete the default_offscreen surface. It will also |
| 299 // close the display and any other resources when the last GL surface is | 301 // close the display and any other resources when the last GL surface is |
| 300 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished. | 302 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished. |
| 301 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources) | 303 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources) |
| 302 | 304 |
| 305 // Sends an input event to the gpu service. |
| 306 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState, |
| 307 int, /* client_id */ |
| 308 unsigned int, /* target */ |
| 309 gpu::ValueState /* valuestate */) |
| 310 |
| 303 //------------------------------------------------------------------------------ | 311 //------------------------------------------------------------------------------ |
| 304 // GPU Host Messages | 312 // GPU Host Messages |
| 305 // These are messages to the browser. | 313 // These are messages to the browser. |
| 306 | 314 |
| 307 // A renderer sends this when it wants to create a connection to the GPU | 315 // A renderer sends this when it wants to create a connection to the GPU |
| 308 // process. The browser will create the GPU process if necessary, and will | 316 // process. The browser will create the GPU process if necessary, and will |
| 309 // return a handle to the channel via a GpuChannelEstablished message. | 317 // return a handle to the channel via a GpuChannelEstablished message. |
| 310 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 318 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
| 311 content::CauseForGpuLaunch, | 319 content::CauseForGpuLaunch, |
| 312 int /* client id */, | 320 int /* client id */, |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 int32 /* bitstream_buffer_id */, | 732 int32 /* bitstream_buffer_id */, |
| 725 uint32 /* payload_size */, | 733 uint32 /* payload_size */, |
| 726 bool /* key_frame */) | 734 bool /* key_frame */) |
| 727 | 735 |
| 728 // Report error condition. | 736 // Report error condition. |
| 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 737 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 730 media::VideoEncodeAccelerator::Error /* error */) | 738 media::VideoEncodeAccelerator::Error /* error */) |
| 731 | 739 |
| 732 // Send destroy request to the encoder. | 740 // Send destroy request to the encoder. |
| 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 741 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |