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

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

Issue 739673002: Create GrOptDrawState before recording draw in GrInOrderDrawBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused function in pendingprogramelement Created 6 years, 1 month 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/GrGLProgram.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 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
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 friend class GrGLShaderBuilder; 66 friend class GrGLShaderBuilder;
67 }; 67 };
68 68
69 typedef SkTArray<TextureSampler> TextureSamplerArray; 69 typedef SkTArray<TextureSampler> TextureSamplerArray;
70 70
71 virtual ~GrGLProcessor() {} 71 virtual ~GrGLProcessor() {}
72 72
73 /** A GrGLProcessor instance can be reused with any GrProcessor that produce s the same stage 73 /** A GrGLProcessor instance can be reused with any GrProcessor that produce s the same stage
74 key; this function reads data from a GrProcessor and uploads any uniform variables required 74 key; this function reads data from a GrProcessor and uploads any uniform variables required
75 by the shaders created in emitCode(). The GrProcessor installed in the G rDrawEffect is 75 by the shaders created in emitCode(). The GrProcessor parameter is guara nteed to be of the
76 guaranteed to be of the same type that created this GrGLProcessor and to have an identical 76 same type that created this GrGLProcessor and to have an identical effec t key as the one
77 effect key as the one that created this GrGLProcessor. Effects that use local coords have 77 that created this GrGLProcessor. */
78 to consider whether the GrProcessorStage's coord change matrix should be used. When explicit
79 local coordinates are used it can be ignored. */
80 virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) {} 78 virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) {}
81 79
82 const char* name() const { return fFactory.name(); } 80 const char* name() const { return fFactory.name(); }
83 81
84 static void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilde r*) {} 82 static void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilde r*) {}
85 83
86 protected: 84 protected:
87 const GrBackendProcessorFactory& fFactory; 85 const GrBackendProcessorFactory& fFactory;
88 }; 86 };
89 87
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const char* outputColor, 120 const char* outputColor,
123 const char* inputColor, 121 const char* inputColor,
124 const TransformedCoordsArray& coords, 122 const TransformedCoordsArray& coords,
125 const TextureSamplerArray& samplers) = 0; 123 const TextureSamplerArray& samplers) = 0;
126 124
127 private: 125 private:
128 typedef GrGLProcessor INHERITED; 126 typedef GrGLProcessor INHERITED;
129 }; 127 };
130 128
131 #endif 129 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.h ('k') | src/gpu/gl/GrGLProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698