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