Add ICU message format support
[chromium-blink-merge.git] / ui / ozone / common / gpu / ozone_gpu_message_params.cc
blobe14da5ec32a8fcbbc5b6b98cb095e5d61985ba1a
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 plane_z_order(candidate.plane_z_order) {
34 OverlayCheck_Params::~OverlayCheck_Params() {
37 } // namespace ui