[Ozone] Pass uv_rect from CC instead of current hardcode.
[chromium-blink-merge.git] / ui / ozone / common / gpu / ozone_gpu_message_params.cc
blob0a7e7e599bd070f1998f385234e2f8cfaf0c8bbc
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"
10 namespace ui {
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 crop_rect(candidate.crop_rect),
32 plane_z_order(candidate.plane_z_order) {}
34 OverlayCheck_Params::~OverlayCheck_Params() {
37 } // namespace ui