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

Unified Diff: src/gpu/effects/GrDashingEffect.cpp

Issue 1441683008: Move GrGLPrimitive/GeometryProc to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@xferProcs
Patch Set: nits 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/effects/GrBitmapTextGeoProc.cpp ('k') | src/gpu/effects/GrDistanceFieldGeoProc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrDashingEffect.cpp
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp
index 612e976f862f8b279cf588c75ea66647e412fe1c..c74ae6bebfd102aa61146b23c0a3e6717a74c636 100644
--- a/src/gpu/effects/GrDashingEffect.cpp
+++ b/src/gpu/effects/GrDashingEffect.cpp
@@ -21,9 +21,8 @@
#include "GrVertexBuffer.h"
#include "SkGr.h"
#include "batches/GrVertexBatch.h"
-#include "gl/GrGLGeometryProcessor.h"
-#include "glsl/GrGLSLFragmentProcessor.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
+#include "glsl/GrGLSLGeometryProcessor.h"
#include "glsl/GrGLSLProgramBuilder.h"
#include "glsl/GrGLSLProgramDataManager.h"
#include "glsl/GrGLSLVertexShaderBuilder.h"
@@ -793,7 +792,7 @@ public:
void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder* b) const override;
- GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
+ GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
private:
DashingCircleEffect(GrColor, DashAAMode aaMode, const SkMatrix& localMatrix,
@@ -814,7 +813,7 @@ private:
//////////////////////////////////////////////////////////////////////////////
-class GLDashingCircleEffect : public GrGLGeometryProcessor {
+class GLDashingCircleEffect : public GrGLSLGeometryProcessor {
public:
GLDashingCircleEffect();
@@ -840,7 +839,7 @@ private:
SkScalar fPrevRadius;
SkScalar fPrevCenterX;
SkScalar fPrevIntervalLength;
- typedef GrGLGeometryProcessor INHERITED;
+ typedef GrGLSLGeometryProcessor INHERITED;
};
GLDashingCircleEffect::GLDashingCircleEffect() {
@@ -934,7 +933,7 @@ void DashingCircleEffect::getGLProcessorKey(const GrGLSLCaps& caps,GrProcessorKe
GLDashingCircleEffect::GenKey(*this, caps, b);
}
-GrGLPrimitiveProcessor* DashingCircleEffect::createGLInstance(const GrGLSLCaps&) const {
+GrGLSLPrimitiveProcessor* DashingCircleEffect::createGLInstance(const GrGLSLCaps&) const {
return new GLDashingCircleEffect();
}
@@ -1004,7 +1003,7 @@ public:
void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override;
- GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
+ GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
private:
DashingLineEffect(GrColor, DashAAMode aaMode, const SkMatrix& localMatrix,
@@ -1025,7 +1024,7 @@ private:
//////////////////////////////////////////////////////////////////////////////
-class GLDashingLineEffect : public GrGLGeometryProcessor {
+class GLDashingLineEffect : public GrGLSLGeometryProcessor {
public:
GLDashingLineEffect();
@@ -1047,7 +1046,7 @@ public:
private:
GrColor fColor;
UniformHandle fColorUniform;
- typedef GrGLGeometryProcessor INHERITED;
+ typedef GrGLSLGeometryProcessor INHERITED;
};
GLDashingLineEffect::GLDashingLineEffect() {
@@ -1159,7 +1158,7 @@ void DashingLineEffect::getGLProcessorKey(const GrGLSLCaps& caps,
GLDashingLineEffect::GenKey(*this, caps, b);
}
-GrGLPrimitiveProcessor* DashingLineEffect::createGLInstance(const GrGLSLCaps&) const {
+GrGLSLPrimitiveProcessor* DashingLineEffect::createGLInstance(const GrGLSLCaps&) const {
return new GLDashingLineEffect();
}
« no previous file with comments | « src/gpu/effects/GrBitmapTextGeoProc.cpp ('k') | src/gpu/effects/GrDistanceFieldGeoProc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698