OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <drm_fourcc.h> | 5 #include <drm_fourcc.h> |
6 | 6 |
7 #include "ui/ozone/platform/drm/gpu/fake_plane_info.h" | 7 #include "ui/ozone/platform/drm/gpu/fake_plane_info.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
11 FakePlaneInfo::FakePlaneInfo(uint32_t plane_id, uint32_t crtc_mask) | 11 FakePlaneInfo::FakePlaneInfo(uint32_t plane_id, uint32_t crtc_mask) |
12 : id(plane_id), allowed_crtc_mask(crtc_mask) { | 12 : id(plane_id), allowed_crtc_mask(crtc_mask) { |
13 allowed_formats.push_back(DRM_FORMAT_XRGB8888); | 13 allowed_formats.push_back(DRM_FORMAT_XRGB8888); |
14 } | 14 } |
15 | 15 |
16 FakePlaneInfo::FakePlaneInfo(uint32_t plane_id, | 16 FakePlaneInfo::FakePlaneInfo(uint32_t plane_id, |
17 uint32_t crtc_mask, | 17 uint32_t crtc_mask, |
18 const std::vector<uint32_t>& formats) | 18 const std::vector<uint32_t>& formats) |
19 : id(plane_id), allowed_crtc_mask(crtc_mask), allowed_formats(formats) {} | 19 : id(plane_id), allowed_crtc_mask(crtc_mask), allowed_formats(formats) {} |
20 | 20 |
| 21 FakePlaneInfo::FakePlaneInfo(const FakePlaneInfo& other) = default; |
| 22 |
21 FakePlaneInfo::~FakePlaneInfo() {} | 23 FakePlaneInfo::~FakePlaneInfo() {} |
22 | 24 |
23 } // namespace ui | 25 } // namespace ui |
OLD | NEW |