Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Security Test Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
304 // Tells the GPU process to delete the default_offscreen surface. It will also 306 // Tells the GPU process to delete the default_offscreen surface. It will also
305 // close the display and any other resources when the last GL surface is 307 // close the display and any other resources when the last GL surface is
306 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished. 308 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished.
307 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources) 309 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources)
308 310
311 // Sends an input event to the gpu service.
312 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState,
313 int, /* client_id */
314 unsigned int, /* target */
315 gpu::ValueState /* valuestate */)
316
309 //------------------------------------------------------------------------------ 317 //------------------------------------------------------------------------------
310 // GPU Host Messages 318 // GPU Host Messages
311 // These are messages to the browser. 319 // These are messages to the browser.
312 320
313 // A renderer sends this when it wants to create a connection to the GPU 321 // A renderer sends this when it wants to create a connection to the GPU
314 // process. The browser will create the GPU process if necessary, and will 322 // process. The browser will create the GPU process if necessary, and will
315 // return a handle to the channel via a GpuChannelEstablished message. 323 // return a handle to the channel via a GpuChannelEstablished message.
316 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, 324 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel,
317 content::CauseForGpuLaunch, 325 content::CauseForGpuLaunch,
318 int /* client id */, 326 int /* client id */,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 int32 /* bitstream_buffer_id */, 738 int32 /* bitstream_buffer_id */,
731 uint32 /* payload_size */, 739 uint32 /* payload_size */,
732 bool /* key_frame */) 740 bool /* key_frame */)
733 741
734 // Report error condition. 742 // Report error condition.
735 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 743 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
736 media::VideoEncodeAccelerator::Error /* error */) 744 media::VideoEncodeAccelerator::Error /* error */)
737 745
738 // Send destroy request to the encoder. 746 // Send destroy request to the encoder.
739 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 747 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698