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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_messages.h

Issue 378673002: [Ozone] Adding display related IPC messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <vector>
9
8 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
10 #include "ui/gfx/geometry/point.h" 12 #include "ui/gfx/geometry/point.h"
11 #include "ui/gfx/ipc/gfx_param_traits.h" 13 #include "ui/gfx/ipc/gfx_param_traits.h"
12 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
13 #include "ui/ozone/ozone_export.h" 16 #include "ui/ozone/ozone_export.h"
14 17
15 #undef IPC_MESSAGE_EXPORT 18 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT OZONE_EXPORT 19 #define IPC_MESSAGE_EXPORT OZONE_EXPORT
17 20
18 #define IPC_MESSAGE_START OzoneGpuMsgStart 21 #define IPC_MESSAGE_START OzoneGpuMsgStart
19 22
23 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType,
24 ui::DISPLAY_CONNECTION_TYPE_LAST)
25
26 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params)
27 IPC_STRUCT_TRAITS_MEMBER(size)
28 IPC_STRUCT_TRAITS_MEMBER(is_interlaced)
29 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
30 IPC_STRUCT_TRAITS_END()
31
32 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params)
33 IPC_STRUCT_TRAITS_MEMBER(display_id)
34 IPC_STRUCT_TRAITS_MEMBER(has_proper_display_id)
35 IPC_STRUCT_TRAITS_MEMBER(origin)
36 IPC_STRUCT_TRAITS_MEMBER(physical_size)
37 IPC_STRUCT_TRAITS_MEMBER(type)
38 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling)
39 IPC_STRUCT_TRAITS_MEMBER(has_overscan)
40 IPC_STRUCT_TRAITS_MEMBER(display_name)
41 IPC_STRUCT_TRAITS_MEMBER(modes)
42 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
43 IPC_STRUCT_TRAITS_MEMBER(current_mode)
44 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
45 IPC_STRUCT_TRAITS_MEMBER(native_mode)
46 IPC_STRUCT_TRAITS_MEMBER(string_representation)
47 IPC_STRUCT_TRAITS_END()
48
20 //------------------------------------------------------------------------------ 49 //------------------------------------------------------------------------------
21 // GPU Messages 50 // GPU Messages
22 // These are messages from the browser to the GPU process. 51 // These are messages from the browser to the GPU process.
23 52
53 ////////////////////////////////////////////////////////////////////////////////
54 // Cursor messages.
spang 2014/07/08 14:09:38 It's not obvious which header belongs to which cod
dnicoara 2014/07/08 14:25:14 Done.
55
24 // Update the HW cursor bitmap & move to specified location. 56 // Update the HW cursor bitmap & move to specified location.
25 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_CursorSet, 57 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_CursorSet,
26 gfx::AcceleratedWidget, SkBitmap, gfx::Point) 58 gfx::AcceleratedWidget, SkBitmap, gfx::Point)
27 59
28 // Move the HW cursor to the specified location. 60 // Move the HW cursor to the specified location.
29 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove, 61 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove,
30 gfx::AcceleratedWidget, gfx::Point) 62 gfx::AcceleratedWidget, gfx::Point)
31 63
64 #if defined(OS_CHROMEOS)
65 ////////////////////////////////////////////////////////////////////////////////
66 // Display configuration messages.
67
68 // Force the DPMS state of the display to on.
69 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn)
70
71 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be
72 // sent as a resonse.
73 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RefreshNativeDisplays)
74
75 // Configure a display with the specified mode at the specified location.
76 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay,
77 int64_t, // display ID
78 ui::DisplayMode_Params, // display mode
79 gfx::Point) // origin for the display
80
81 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay,
82 int64_t) // display ID
83
84 //------------------------------------------------------------------------------
85 // Browser Messages
86 // These messages are from the browser to the GPU process.
87
88 // Updates the list of active displays.
89 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
90 std::vector<ui::DisplaySnapshot_Params>)
91 #endif
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698