| 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/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/gpu/gpu_memory_allocation.h" | 13 #include "content/common/gpu/gpu_memory_allocation.h" |
| 14 #include "content/common/gpu/gpu_memory_uma_stats.h" | 14 #include "content/common/gpu/gpu_memory_uma_stats.h" |
| 15 #include "content/common/gpu/gpu_process_launch_causes.h" | 15 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 16 #include "content/common/gpu/gpu_rendering_stats.h" | 16 #include "content/common/gpu/gpu_rendering_stats.h" |
| 17 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
| 18 #include "content/public/common/gpu_memory_stats.h" | 18 #include "content/public/common/gpu_memory_stats.h" |
| 19 #include "gpu/command_buffer/common/command_buffer.h" | 19 #include "gpu/command_buffer/common/command_buffer.h" |
| 20 #include "gpu/command_buffer/common/constants.h" | 20 #include "gpu/command_buffer/common/constants.h" |
| 21 #include "gpu/command_buffer/common/mailbox.h" |
| 21 #include "gpu/config/gpu_info.h" | 22 #include "gpu/config/gpu_info.h" |
| 22 #include "gpu/ipc/gpu_command_buffer_traits.h" | 23 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 23 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
| 24 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
| 25 #include "media/video/video_decode_accelerator.h" | 26 #include "media/video/video_decode_accelerator.h" |
| 26 #include "ui/base/latency_info.h" | 27 #include "ui/base/latency_info.h" |
| 27 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
| 28 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
| 29 #include "ui/gl/gpu_preference.h" | 30 #include "ui/gl/gpu_preference.h" |
| 30 #include "ui/surface/transport_dib.h" | 31 #include "ui/surface/transport_dib.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // Returns the shared memory handle for the command buffer mapped to the | 489 // Returns the shared memory handle for the command buffer mapped to the |
| 489 // calling process. | 490 // calling process. |
| 490 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_Initialize, | 491 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_Initialize, |
| 491 base::SharedMemoryHandle /* shared_state */, | 492 base::SharedMemoryHandle /* shared_state */, |
| 492 bool /* result */) | 493 bool /* result */) |
| 493 | 494 |
| 494 // Sets the shared memory buffer used for commands. | 495 // Sets the shared memory buffer used for commands. |
| 495 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, | 496 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
| 496 int32 /* shm_id */) | 497 int32 /* shm_id */) |
| 497 | 498 |
| 498 // Sets the parent command buffer. This allows the parent and child to share | 499 // Produces the front buffer into a mailbox. This allows another context to draw |
| 499 // textures. | 500 // the output of this context. |
| 500 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, | 501 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ProduceFrontBuffer, |
| 501 int32 /* parent_route_id */, | 502 gpu::Mailbox /* mailbox */) |
| 502 uint32 /* parent_texture_id */, | |
| 503 bool /* result */) | |
| 504 | 503 |
| 505 // Get the current state of the command buffer. | 504 // Get the current state of the command buffer. |
| 506 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 505 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
| 507 gpu::CommandBuffer::State /* state */) | 506 gpu::CommandBuffer::State /* state */) |
| 508 | 507 |
| 509 // Get the current state of the command buffer, as fast as possible. | 508 // Get the current state of the command buffer, as fast as possible. |
| 510 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetStateFast, | 509 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetStateFast, |
| 511 gpu::CommandBuffer::State /* state */) | 510 gpu::CommandBuffer::State /* state */) |
| 512 | 511 |
| 513 // Asynchronously synchronize the put and get offsets of both processes. | 512 // Asynchronously synchronize the put and get offsets of both processes. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 | 673 |
| 675 // Confirm decoder has been flushed. | 674 // Confirm decoder has been flushed. |
| 676 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 675 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 677 | 676 |
| 678 // Confirm decoder has been reset. | 677 // Confirm decoder has been reset. |
| 679 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 678 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 680 | 679 |
| 681 // Video decoder has encountered an error. | 680 // Video decoder has encountered an error. |
| 682 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 681 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 683 uint32) /* Error ID */ | 682 uint32) /* Error ID */ |
| OLD | NEW |