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

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

Issue 660563003: More effect->processor cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@comments
Patch Set: more 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 | « include/gpu/GrTBackendProcessorFactory.h ('k') | no next file » | 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 2012 Google Inc. 2 * Copyright 2012 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 GrGLProcessor_DEFINED 8 #ifndef GrGLProcessor_DEFINED
9 #define GrGLProcessor_DEFINED 9 #define GrGLProcessor_DEFINED
10 10
11 #include "GrBackendProcessorFactory.h" 11 #include "GrBackendProcessorFactory.h"
12 #include "GrGLProgramDataManager.h" 12 #include "GrGLProgramDataManager.h"
13 #include "GrTextureAccess.h" 13 #include "GrTextureAccess.h"
14 14
15 /** @file 15 /** @file
16 This file contains specializations for OpenGL of the shader stages declared in 16 This file contains specializations for OpenGL of the shader stages declared in
17 include/gpu/GrProcessor.h. Objects of type GrGLProcessor are responsible for emitting the 17 include/gpu/GrProcessor.h. Objects of type GrGLProcessor are responsible for emitting the
18 GLSL code that implements a GrProcessor and for uploading uniforms at draw t ime. If they don't 18 GLSL code that implements a GrProcessor and for uploading uniforms at draw t ime. If they don't
19 always emit the same GLSL code, they must have a function: 19 always emit the same GLSL code, they must have a function:
20 static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcess orKeyBuilder*) 20 static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcess orKeyBuilder*)
21 that is used to implement a program cache. When two GrProcessors produce the same key this means 21 that is used to implement a program cache. When two GrProcessors produce the same key this means
22 that their GrGLProcessors would emit the same GLSL code. 22 that their GrGLProcessors would emit the same GLSL code.
23 23
24 The GrGLProcessor subclass must also have a constructor of the form: 24 The GrGLProcessor subclass must also have a constructor of the form:
25 EffectSubclass::EffectSubclass(const GrBackendEffectFactory&, const GrPr ocessor&) 25 EffectSubclass::EffectSubclass(const GrBackendProcessorFactory&, const G rProcessor&)
26 26
27 These objects are created by the factory object returned by the GrProcessor: :getFactory(). 27 These objects are created by the factory object returned by the GrProcessor: :getFactory().
28 */ 28 */
29 29
30 class GrGLProcessor { 30 class GrGLProcessor {
31 public: 31 public:
32 GrGLProcessor(const GrBackendProcessorFactory& factory) 32 GrGLProcessor(const GrBackendProcessorFactory& factory)
33 : fFactory(factory) { 33 : fFactory(factory) {
34 } 34 }
35 35
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const char* outputColor, 122 const char* outputColor,
123 const char* inputColor, 123 const char* inputColor,
124 const TransformedCoordsArray& coords, 124 const TransformedCoordsArray& coords,
125 const TextureSamplerArray& samplers) = 0; 125 const TextureSamplerArray& samplers) = 0;
126 126
127 private: 127 private:
128 typedef GrGLProcessor INHERITED; 128 typedef GrGLProcessor INHERITED;
129 }; 129 };
130 130
131 #endif 131 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTBackendProcessorFactory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698