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 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 5 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
6 | 6 |
| 7 #include "ui/gfx/geometry/rect_conversions.h" |
| 8 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 9 |
7 namespace ui { | 10 namespace ui { |
8 | 11 |
9 DisplayMode_Params::DisplayMode_Params() | 12 DisplayMode_Params::DisplayMode_Params() |
10 : size(), is_interlaced(false), refresh_rate(0.0f) {} | 13 : size(), is_interlaced(false), refresh_rate(0.0f) {} |
11 | 14 |
12 DisplayMode_Params::~DisplayMode_Params() {} | 15 DisplayMode_Params::~DisplayMode_Params() {} |
13 | 16 |
14 DisplaySnapshot_Params::DisplaySnapshot_Params() | 17 DisplaySnapshot_Params::DisplaySnapshot_Params() |
15 : display_id(0), | 18 : display_id(0), |
16 origin(), | 19 origin(), |
17 physical_size(), | 20 physical_size(), |
18 type(ui::DISPLAY_CONNECTION_TYPE_NONE), | 21 type(ui::DISPLAY_CONNECTION_TYPE_NONE), |
19 is_aspect_preserving_scaling(false), | 22 is_aspect_preserving_scaling(false), |
20 has_overscan(false), | 23 has_overscan(false), |
21 display_name(), | 24 display_name(), |
22 modes(), | 25 modes(), |
23 has_current_mode(false), | 26 has_current_mode(false), |
24 current_mode(), | 27 current_mode(), |
25 has_native_mode(false), | 28 has_native_mode(false), |
26 native_mode(), | 29 native_mode(), |
27 product_id(0) { | 30 product_id(0) { |
28 } | 31 } |
29 | 32 |
30 DisplaySnapshot_Params::~DisplaySnapshot_Params() {} | 33 DisplaySnapshot_Params::~DisplaySnapshot_Params() {} |
31 | 34 |
| 35 OverlayCheck_Params::OverlayCheck_Params() |
| 36 : transform(gfx::OVERLAY_TRANSFORM_INVALID), |
| 37 format(SurfaceFactoryOzone::UNKNOWN), |
| 38 plane_z_order(0) { |
| 39 } |
| 40 |
| 41 OverlayCheck_Params::OverlayCheck_Params( |
| 42 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate) |
| 43 : buffer_size(candidate.buffer_size), |
| 44 transform(candidate.transform), |
| 45 format(candidate.format), |
| 46 display_rect(gfx::ToNearestRect(candidate.display_rect)), |
| 47 plane_z_order(candidate.plane_z_order) { |
| 48 } |
| 49 |
| 50 OverlayCheck_Params::~OverlayCheck_Params() { |
| 51 } |
| 52 |
32 } // namespace ui | 53 } // namespace ui |
OLD | NEW |