aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPendingFragmentStage.h
blob: dfa56886633fb0b5c3623b4237fed0c44f26951b (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
/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrPendingFragmentStage_DEFINED
#define GrPendingFragmentStage_DEFINED

#include "GrStagedProcessor.h"
#include "GrPendingProgramElement.h"

/**
 * This a baked variant of GrFragmentStage, as recorded in GrPipeline
 */
class GrPendingFragmentStage : public GrStagedProcessor<GrPendingProgramElement> {
public:
    GrPendingFragmentStage(const GrFragmentStage& stage) {
        INHERITED::fProc.reset(stage.processor());
    }

private:
    typedef GrStagedProcessor<GrPendingProgramElement> INHERITED;
};

#endif