Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/gpu/gl/GrGLGeometryProcessor.h

Issue 637003003: Opt state takes a GP instead of a GeometryStage (Closed) Base URL: https://skia.googlesource.com/skia.git@builder_cleanup
Patch Set: memory leaks fixed Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.h ('k') | src/gpu/gl/GrGLProcessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLGeometryProcessor_DEFINED 8 #ifndef GrGLGeometryProcessor_DEFINED
9 #define GrGLGeometryProcessor_DEFINED 9 #define GrGLGeometryProcessor_DEFINED
10 10
11 #include "GrGLProcessor.h" 11 #include "GrGLProcessor.h"
12 12
13 class GrGLGPBuilder;
14
13 /** 15 /**
14 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the n it must inherit 16 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the n it must inherit
15 * from this class. Since paths don't have vertices, this class is only meant to be used internally 17 * from this class. Since paths don't have vertices, this class is only meant to be used internally
16 * by skia, for special cases. 18 * by skia, for special cases.
17 */ 19 */
18 class GrGLGeometryProcessor : public GrGLProcessor { 20 class GrGLGeometryProcessor : public GrGLProcessor {
19 public: 21 public:
20 GrGLGeometryProcessor(const GrBackendProcessorFactory& factory) 22 GrGLGeometryProcessor(const GrBackendProcessorFactory& factory)
21 : INHERITED(factory) {} 23 : INHERITED(factory) {}
22 24
23 /** 25 /**
24 * This is similar to emitCode() in the base class, except it takes a full s hader builder. 26 * This is similar to emitCode() in the base class, except it takes a full s hader builder.
25 * This allows the effect subclass to emit vertex code. 27 * This allows the effect subclass to emit vertex code.
26 */ 28 */
27 virtual void emitCode(GrGLGPBuilder* builder, 29 virtual void emitCode(GrGLGPBuilder* builder,
28 const GrGeometryProcessor& geometryProcessor, 30 const GrGeometryProcessor& geometryProcessor,
29 const GrProcessorKey& key, 31 const GrProcessorKey& key,
30 const char* outputColor, 32 const char* outputColor,
31 const char* inputColor, 33 const char* inputColor,
32 const TransformedCoordsArray& coords, 34 const TransformedCoordsArray& coords,
33 const TextureSamplerArray& samplers) = 0; 35 const TextureSamplerArray& samplers) = 0;
34 36
35 private: 37 private:
36 typedef GrGLProcessor INHERITED; 38 typedef GrGLProcessor INHERITED;
37 }; 39 };
38 40
39 #endif 41 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.h ('k') | src/gpu/gl/GrGLProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698