aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLFragmentProcessor.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-10-29 07:57:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-29 07:57:02 -0700
commit7dc4bd06fca73a97dcf3ad4a7425597160f1edfc (patch)
treee257695fd2e59d57bb226d754a8c2c374f6360d7 /src/gpu/gl/GrGLFragmentProcessor.h
parentcc92b4a7eca78dcec23d14ccd4ecf5889c35caa1 (diff)
Remove GrGLProcessor and create GrGLSLTextureSampler class.
Part ??? of separating glsl and gl BUG=skia: Review URL: https://codereview.chromium.org/1425013003
Diffstat (limited to 'src/gpu/gl/GrGLFragmentProcessor.h')
-rw-r--r--src/gpu/gl/GrGLFragmentProcessor.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGLFragmentProcessor.h b/src/gpu/gl/GrGLFragmentProcessor.h
index 00bd063d8e..2a78bbdee0 100644
--- a/src/gpu/gl/GrGLFragmentProcessor.h
+++ b/src/gpu/gl/GrGLFragmentProcessor.h
@@ -8,9 +8,12 @@
#ifndef GrGLFragmentProcessor_DEFINED
#define GrGLFragmentProcessor_DEFINED
-#include "GrGLProcessor.h"
+#include "glsl/GrGLSLProcessorTypes.h"
#include "glsl/GrGLSLProgramDataManager.h"
+#include "glsl/GrGLSLTextureSampler.h"
+class GrProcessor;
+class GrProcessorKeyBuilder;
class GrGLFPBuilder;
class GrGLSLCaps;
@@ -25,8 +28,7 @@ public:
}
typedef GrGLSLProgramDataManager::UniformHandle UniformHandle;
- typedef GrGLProcessor::TransformedCoordsArray TransformedCoordsArray;
- typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray;
+ typedef GrGLSLTextureSampler::TextureSamplerArray TextureSamplerArray;
/** Called when the program stage should insert its code into the shaders. The code in each
shader will be in its own block ({}) and so locally scoped names will not collide across
@@ -52,7 +54,7 @@ public:
const GrFragmentProcessor& fp,
const char* outputColor,
const char* inputColor,
- const TransformedCoordsArray& coords,
+ const GrGLSLTransformedCoordsArray& coords,
const TextureSamplerArray& samplers)
: fBuilder(builder)
, fFp(fp)
@@ -64,7 +66,7 @@ public:
const GrFragmentProcessor& fFp;
const char* fOutputColor;
const char* fInputColor;
- const TransformedCoordsArray& fCoords;
+ const GrGLSLTransformedCoordsArray& fCoords;
const TextureSamplerArray& fSamplers;
};
@@ -109,7 +111,6 @@ private:
SkTArray<GrGLFragmentProcessor*, true> fChildProcessors;
friend class GrFragmentProcessor;
- typedef GrGLProcessor INHERITED;
};
#endif