summaryrefslogtreecommitdiffstats
path: root/src/core/compositor/display_software_output_surface.h
blob: d23664d56e81ceeb1f56e11f7d80a2984339b939 (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
26
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef DISPLAY_SOFTWARE_OUTPUT_SURFACE_H
#define DISPLAY_SOFTWARE_OUTPUT_SURFACE_H

#include "components/viz/service/display_embedder/software_output_surface.h"

namespace QtWebEngineCore {

class DisplaySoftwareOutputSurface final : public viz::SoftwareOutputSurface
{
public:
    DisplaySoftwareOutputSurface(bool requiresAlpha);
    ~DisplaySoftwareOutputSurface() override;

    // Overridden from viz::OutputSurface.
    void SetFrameSinkId(const viz::FrameSinkId &id) override;

private:
    class Device;
};

} // namespace QtWebEngineCore

#endif // !DISPLAY_SOFTWARE_OUTPUT_SURFACE_H