aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h
blob: 2082876336e8d5aad072c573a03f2309434aa9da (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
27
28
29
30
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qmlprofilerrangemodel.h"

#include <tracing/timelineabstractrenderer.h>
#include <tracing/timelinerenderpass.h>
#include <tracing/timelinerenderstate.h>

#include <QSGMaterial>

namespace QmlProfiler {
namespace Internal {

class QmlProfilerBindingLoopsRenderPass : public Timeline::TimelineRenderPass
{
public:
    static const QmlProfilerBindingLoopsRenderPass *instance();
    State *update(const Timeline::TimelineAbstractRenderer *renderer,
                  const Timeline::TimelineRenderState *parentState,
                  State *oldState, int indexFrom, int indexTo, bool stateChanged,
                  float spacing) const override;
protected:
    QmlProfilerBindingLoopsRenderPass();
};

} // namespace Internal
} // namespace QmlProfiler