OLD | NEW |
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 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 }; | 28 }; |
29 | 29 |
30 struct OZONE_EXPORT DisplaySnapshot_Params { | 30 struct OZONE_EXPORT DisplaySnapshot_Params { |
31 DisplaySnapshot_Params(); | 31 DisplaySnapshot_Params(); |
32 ~DisplaySnapshot_Params(); | 32 ~DisplaySnapshot_Params(); |
33 | 33 |
34 int64_t display_id = 0; | 34 int64_t display_id = 0; |
35 gfx::Point origin; | 35 gfx::Point origin; |
36 gfx::Size physical_size; | 36 gfx::Size physical_size; |
37 DisplayConnectionType type = DISPLAY_CONNECTION_TYPE_NONE; | 37 DisplayConnectionType type = DISPLAY_CONNECTION_TYPE_NONE; |
38 bool is_aspect_preserving_scaling = false; | |
39 bool has_overscan = false; | |
40 std::string display_name; | |
41 std::vector<DisplayMode_Params> modes; | 38 std::vector<DisplayMode_Params> modes; |
42 bool has_current_mode = false; | 39 bool has_current_mode = false; |
43 DisplayMode_Params current_mode; | 40 DisplayMode_Params current_mode; |
44 bool has_native_mode = false; | 41 bool has_native_mode = false; |
45 DisplayMode_Params native_mode; | 42 DisplayMode_Params native_mode; |
46 int64_t product_id = 0; | 43 int64_t product_id = 0; |
47 std::string string_representation; | 44 std::string string_representation; |
48 }; | 45 }; |
49 | 46 |
50 struct OZONE_EXPORT OverlayCheck_Params { | 47 struct OZONE_EXPORT OverlayCheck_Params { |
51 OverlayCheck_Params(); | 48 OverlayCheck_Params(); |
52 OverlayCheck_Params( | 49 OverlayCheck_Params( |
53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); | 50 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); |
54 ~OverlayCheck_Params(); | 51 ~OverlayCheck_Params(); |
55 | 52 |
56 gfx::Size buffer_size; | 53 gfx::Size buffer_size; |
57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; | 54 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; |
58 SurfaceFactoryOzone::BufferFormat format = SurfaceFactoryOzone::UNKNOWN; | 55 SurfaceFactoryOzone::BufferFormat format = SurfaceFactoryOzone::UNKNOWN; |
59 gfx::Rect display_rect; | 56 gfx::Rect display_rect; |
60 int plane_z_order = 0; | 57 int plane_z_order = 0; |
61 }; | 58 }; |
62 | 59 |
63 } // namespace ui | 60 } // namespace ui |
64 | 61 |
65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 62 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
OLD | NEW |