summaryrefslogtreecommitdiff
path: root/src/core/compositor/display_software_output_surface.h
blob: 5bb4e77c31072d091658a52577d49aae2297ff8e (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();
    ~DisplaySoftwareOutputSurface() override;

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

private:
    class Device;
};

} // namespace QtWebEngineCore

#endif // !DISPLAY_SOFTWARE_OUTPUT_SURFACE_H