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

Unified Diff: src/gpu/gl/GrGLXferProcessor.h

Issue 1416423003: Make GrGLSLProgramBuilder base class for ProgramBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLPrimitiveProcessor.cpp ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLXferProcessor.h
diff --git a/src/gpu/gl/GrGLXferProcessor.h b/src/gpu/gl/GrGLXferProcessor.h
index d4619974cdff9c05b8a884a740c885ba44a2d710..1e505f3d07b8c295806e85456cc42e982229aeb0 100644
--- a/src/gpu/gl/GrGLXferProcessor.h
+++ b/src/gpu/gl/GrGLXferProcessor.h
@@ -11,7 +11,7 @@
#include "glsl/GrGLSLProgramDataManager.h"
#include "glsl/GrGLSLTextureSampler.h"
-class GrGLXPBuilder;
+class GrGLSLXPBuilder;
class GrXferProcessor;
class GrGLXferProcessor {
@@ -21,7 +21,7 @@ public:
typedef GrGLSLTextureSampler::TextureSamplerArray TextureSamplerArray;
struct EmitArgs {
- EmitArgs(GrGLXPBuilder* pb,
+ EmitArgs(GrGLSLXPBuilder* pb,
const GrXferProcessor& xp,
const char* inputColor,
const char* inputCoverage,
@@ -36,7 +36,7 @@ public:
, fOutputSecondary(outputSecondary)
, fSamplers(samplers) {}
- GrGLXPBuilder* fPB;
+ GrGLSLXPBuilder* fPB;
const GrXferProcessor& fXP;
const char* fInputColor;
const char* fInputCoverage;
@@ -74,8 +74,11 @@ private:
* the blending logic. The base class applies coverage. A subclass only needs to implement this
* method if it can construct a GrXferProcessor that reads the dst color.
*/
- virtual void emitBlendCodeForDstRead(GrGLXPBuilder*, const char* srcColor, const char* dstColor,
- const char* outColor, const GrXferProcessor&) {
+ virtual void emitBlendCodeForDstRead(GrGLSLXPBuilder*,
+ const char* srcColor,
+ const char* dstColor,
+ const char* outColor,
+ const GrXferProcessor&) {
SkFAIL("emitBlendCodeForDstRead not implemented.");
}
« no previous file with comments | « src/gpu/gl/GrGLPrimitiveProcessor.cpp ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698