Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 1 | // Copyright 2021 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. |
| 4 | |
| 5 | #include "ui/gfx/overlay_plane_data.h" |
| 6 | |
| 7 | namespace gfx { |
| 8 | |
| 9 | OverlayPlaneData::OverlayPlaneData() = default; |
| 10 | |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 11 | OverlayPlaneData::OverlayPlaneData( |
| 12 | int z_order, |
| 13 | OverlayTransform plane_transform, |
| 14 | const Rect& display_bounds, |
| 15 | const RectF& crop_rect, |
| 16 | bool enable_blend, |
| 17 | const Rect& damage_rect, |
| 18 | float opacity, |
| 19 | OverlayPriorityHint priority_hint, |
| 20 | const gfx::RRectF& rounded_corners, |
| 21 | const gfx::ColorSpace& color_space, |
Maksim Sisov | 5cda549a | 2021-11-04 06:32:15 | [diff] [blame^] | 22 | const absl::optional<HDRMetadata>& hdr_metadata, |
| 23 | absl::optional<SkColor> solid_color) |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 24 | : z_order(z_order), |
| 25 | plane_transform(plane_transform), |
| 26 | display_bounds(display_bounds), |
| 27 | crop_rect(crop_rect), |
| 28 | enable_blend(enable_blend), |
| 29 | damage_rect(damage_rect), |
| 30 | opacity(opacity), |
Maksim Sisov | 0854ce2 | 2021-10-12 15:14:47 | [diff] [blame] | 31 | priority_hint(priority_hint), |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 32 | rounded_corners(rounded_corners), |
| 33 | color_space(color_space), |
Maksim Sisov | 5cda549a | 2021-11-04 06:32:15 | [diff] [blame^] | 34 | hdr_metadata(hdr_metadata), |
| 35 | solid_color(solid_color) {} |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 36 | |
| 37 | OverlayPlaneData::~OverlayPlaneData() = default; |
| 38 | |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 39 | OverlayPlaneData::OverlayPlaneData(const OverlayPlaneData& other) = default; |
| 40 | |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 41 | } // namespace gfx |