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, |
Maksim Sisov | 85c1be3 | 2022-01-25 11:45:38 | [diff] [blame] | 14 | const RectF& display_bounds, |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 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, |
Peter McNeeley | edecbc1 | 2022-07-26 19:00:33 | [diff] [blame^] | 23 | absl::optional<SkColor4f> color, |
Maksim Sisov | 2921b8a | 2022-04-28 07:30:36 | [diff] [blame] | 24 | bool is_solid_color) |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 25 | : z_order(z_order), |
| 26 | plane_transform(plane_transform), |
| 27 | display_bounds(display_bounds), |
| 28 | crop_rect(crop_rect), |
| 29 | enable_blend(enable_blend), |
| 30 | damage_rect(damage_rect), |
| 31 | opacity(opacity), |
Maksim Sisov | 0854ce2 | 2021-10-12 15:14:47 | [diff] [blame] | 32 | priority_hint(priority_hint), |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 33 | rounded_corners(rounded_corners), |
| 34 | color_space(color_space), |
Maksim Sisov | 5cda549a | 2021-11-04 06:32:15 | [diff] [blame] | 35 | hdr_metadata(hdr_metadata), |
Maksim Sisov | 2921b8a | 2022-04-28 07:30:36 | [diff] [blame] | 36 | color(color), |
| 37 | is_solid_color(is_solid_color) {} |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 38 | |
| 39 | OverlayPlaneData::~OverlayPlaneData() = default; |
| 40 | |
Vasiliy Telezhnikov | cfbd6a9 | 2021-10-19 15:32:22 | [diff] [blame] | 41 | OverlayPlaneData::OverlayPlaneData(const OverlayPlaneData& other) = default; |
| 42 | |
Maksim Sisov | 16b07386 | 2021-10-07 18:07:42 | [diff] [blame] | 43 | } // namespace gfx |