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

Unified Diff: src/gpu/GrOvalRenderer.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/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/GrPathProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.cpp
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index ec79a95e5dcade91ca236f9da0805e2e4db21813..3c438d455e4bbf865eea120d1212d064ac118246 100644
--- a/src/gpu/GrOvalRenderer.cpp
+++ b/src/gpu/GrOvalRenderer.cpp
@@ -21,8 +21,8 @@
#include "SkTLazy.h"
#include "batches/GrVertexBatch.h"
#include "effects/GrRRectEffect.h"
-#include "gl/GrGLGeometryProcessor.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
+#include "glsl/GrGLSLGeometryProcessor.h"
#include "glsl/GrGLSLProgramBuilder.h"
#include "glsl/GrGLSLProgramDataManager.h"
#include "glsl/GrGLSLVertexShaderBuilder.h"
@@ -90,7 +90,7 @@ public:
inline bool isStroked() const { return fStroke; }
- class GLProcessor : public GrGLGeometryProcessor {
+ class GLProcessor : public GrGLSLGeometryProcessor {
public:
GLProcessor()
: fColor(GrColor_ILLEGAL) {}
@@ -162,14 +162,14 @@ public:
private:
GrColor fColor;
UniformHandle fColorUniform;
- typedef GrGLGeometryProcessor INHERITED;
+ typedef GrGLSLGeometryProcessor INHERITED;
};
void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
GLProcessor::GenKey(*this, caps, b);
}
- GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
+ GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
return new GLProcessor();
}
@@ -238,7 +238,7 @@ public:
inline bool isStroked() const { return fStroke; }
- class GLProcessor : public GrGLGeometryProcessor {
+ class GLProcessor : public GrGLSLGeometryProcessor {
public:
GLProcessor()
: fColor(GrColor_ILLEGAL) {}
@@ -331,14 +331,14 @@ public:
GrColor fColor;
UniformHandle fColorUniform;
- typedef GrGLGeometryProcessor INHERITED;
+ typedef GrGLSLGeometryProcessor INHERITED;
};
void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
GLProcessor::GenKey(*this, caps, b);
}
- GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
+ GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
return new GLProcessor();
}
@@ -413,7 +413,7 @@ public:
inline Mode getMode() const { return fMode; }
- class GLProcessor : public GrGLGeometryProcessor {
+ class GLProcessor : public GrGLSLGeometryProcessor {
public:
GLProcessor()
: fViewMatrix(SkMatrix::InvalidMatrix()), fColor(GrColor_ILLEGAL) {}
@@ -525,14 +525,14 @@ public:
UniformHandle fColorUniform;
UniformHandle fViewMatrixUniform;
- typedef GrGLGeometryProcessor INHERITED;
+ typedef GrGLSLGeometryProcessor INHERITED;
};
void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
GLProcessor::GenKey(*this, caps, b);
}
- GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
+ GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override {
return new GLProcessor();
}
« no previous file with comments | « src/gpu/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/GrPathProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698