OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2014 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef GrGLXferProcessor_DEFINED | |
9 #define GrGLXferProcessor_DEFINED | |
10 | |
11 #if 0 // Can undo this once I have a backend. Remove GrGLXferProcessor from gl/G rGLProcessor.h" | |
12 #include "GrGLProcessor.h" | |
13 | |
14 class GrGLFPBuilder; | |
15 | |
16 /** | |
bsalomon
2014/11/26 21:02:45
All the comments in this file seem to be related t
egdaniel
2014/12/01 18:18:25
This file is actually not even needed till the fin
| |
17 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the n it must inherit | |
18 * from this class. Since paths don't have vertices, this class is only meant to be used internally | |
19 * by skia, for special cases. | |
20 */ | |
21 class GrGLXferProcessor : public GrGLProcessor { | |
22 public: | |
23 GrGLXferProcessor(const GrBackendProcessorFactory& factory) | |
24 : INHERITED(factory) {} | |
25 | |
26 /** | |
27 * This is similar to emitCode() in the base class, except it takes a full s hader builder. | |
28 * This allows the effect subclass to emit vertex code. | |
29 */ | |
30 virtual void emitCode(GrGLFPBuilder* builder, | |
31 const GrXferProcessor& xferProcessor, | |
32 const GrProcessorKey& key, | |
33 const char* outputColor, | |
34 const char* inputColor, | |
35 const TransformedCoordsArray& coords, | |
36 const TextureSamplerArray& samplers) = 0; | |
37 | |
38 private: | |
39 typedef GrGLProcessor INHERITED; | |
40 }; | |
41 #endif | |
42 #endif | |
OLD | NEW |