blob: d0c77fcdc7e81dc669e65cb1e4a07bc5267ded95 (
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
31
32
|
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrGLPathProgramBuilder_DEFINED
#define GrGLPathProgramBuilder_DEFINED
#include "GrGLProgramBuilder.h"
class GrGLPathProgramBuilder : public GrGLProgramBuilder {
public:
GrGLPathProgramBuilder(GrGLGpu* gpu, const DrawArgs& args);
GrGLProgram* createProgram(GrGLuint programID) override;
SeparableVaryingHandle addSeparableVarying(const char* name, GrGLVertToFrag* v,
GrSLPrecision fsPrecision) override;
void bindProgramResourceLocations(GrGLuint programID) override;
void resolveProgramResourceLocations(GrGLuint programID) override;
private:
typedef GrGLPathProgramDataManager::SeparableVaryingInfo SeparableVaryingInfo;
typedef GrGLPathProgramDataManager::SeparableVaryingInfoArray SeparableVaryingInfoArray;
SeparableVaryingInfoArray fSeparableVaryingInfos;
typedef GrGLProgramBuilder INHERITED;
};
#endif
|