summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/drm/gpu/fake_plane_info.cc
blob: 2e9a2a732d858497138bd9687bf58d6d4736f60d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <drm_fourcc.h>

#include "ui/ozone/platform/drm/gpu/fake_plane_info.h"

namespace ui {

FakePlaneInfo::FakePlaneInfo(uint32_t plane_id, uint32_t crtc_mask)
    : id(plane_id), allowed_crtc_mask(crtc_mask) {
  allowed_formats.push_back(DRM_FORMAT_XRGB8888);
}

FakePlaneInfo::FakePlaneInfo(uint32_t plane_id,
                             uint32_t crtc_mask,
                             const std::vector<uint32_t>& formats)
    : id(plane_id), allowed_crtc_mask(crtc_mask), allowed_formats(formats) {}

FakePlaneInfo::FakePlaneInfo(const FakePlaneInfo& other) = default;

FakePlaneInfo::~FakePlaneInfo() {}

}  // namespace ui