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" | 7 #include "ui/gfx/geometry/rect_conversions.h" |
8 #include "ui/gfx/ipc/gfx_param_traits.h" | 8 #include "ui/gfx/ipc/gfx_param_traits.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 11 matching lines...) Expand all Loading... |
22 OverlayCheck_Params::OverlayCheck_Params() {} | 22 OverlayCheck_Params::OverlayCheck_Params() {} |
23 | 23 |
24 OverlayCheck_Params::OverlayCheck_Params( | 24 OverlayCheck_Params::OverlayCheck_Params( |
25 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate) | 25 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate) |
26 : buffer_size(candidate.buffer_size), | 26 : buffer_size(candidate.buffer_size), |
27 transform(candidate.transform), | 27 transform(candidate.transform), |
28 format(candidate.format), | 28 format(candidate.format), |
29 display_rect(gfx::ToNearestRect(candidate.display_rect)), | 29 display_rect(gfx::ToNearestRect(candidate.display_rect)), |
30 crop_rect(candidate.crop_rect), | 30 crop_rect(candidate.crop_rect), |
31 plane_z_order(candidate.plane_z_order), | 31 plane_z_order(candidate.plane_z_order), |
32 weight(0) {} | 32 weight(0), |
| 33 state(kTest), |
| 34 optimal_format(candidate.format), |
| 35 required_buffer_size(candidate.buffer_size) {} |
| 36 |
| 37 bool OverlayCheck_Params::operator==(const OverlayCheck_Params& param) const { |
| 38 return this->plane_z_order == param.plane_z_order && |
| 39 this->format == param.format && this->transform == param.transform && |
| 40 this->display_rect == param.display_rect && |
| 41 this->buffer_size == param.buffer_size && |
| 42 this->crop_rect == param.crop_rect; |
| 43 } |
33 | 44 |
34 OverlayCheck_Params::~OverlayCheck_Params() { | 45 OverlayCheck_Params::~OverlayCheck_Params() { |
35 } | 46 } |
36 | 47 |
37 } // namespace ui | 48 } // namespace ui |
OLD | NEW |