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
3 // found in the LICENSE file.
5 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
7 #include "ui/gfx/geometry/rect_conversions.h"
8 #include "ui/gfx/ipc/gfx_param_traits.h"
12 DisplayMode_Params::DisplayMode_Params() {
15 DisplayMode_Params::~DisplayMode_Params() {}
17 DisplaySnapshot_Params::DisplaySnapshot_Params() {
20 DisplaySnapshot_Params::~DisplaySnapshot_Params() {}
22 OverlayCheck_Params::OverlayCheck_Params() {
25 OverlayCheck_Params::OverlayCheck_Params(
26 const OverlayCandidatesOzone::OverlaySurfaceCandidate
& candidate
)
27 : buffer_size(candidate
.buffer_size
),
28 transform(candidate
.transform
),
29 format(candidate
.format
),
30 display_rect(gfx::ToNearestRect(candidate
.display_rect
)),
31 plane_z_order(candidate
.plane_z_order
) {
34 OverlayCheck_Params::~OverlayCheck_Params() {